⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_qwt_slider.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 4 页
字号:
          <td class="mdname1" valign="top" nowrap> <em>o</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Set the orientation. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>o</em>&nbsp;</td><td>Orientation. Allowed values are Qt::Horizontal and Qt::Vertical.</td></tr>  </table></dl>If the new orientation and the old scale position are an invalid combination, the scale position will be set to QwtSlider::NoScale. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_slider.html#4d2521b9c31ec64b71d8e1771b156d88">QwtAbstractSlider::orientation()</a> </dd></dl><p>Reimplemented from <a class="el" href="class_qwt_abstract_slider.html#6b0fdc50bfbb0a8bb40f0dc6bf493b2c">QwtAbstractSlider</a>.<p>Definition at line <a class="el" href="qwt__slider_8cpp-source.html#l00174">174</a> of file <a class="el" href="qwt__slider_8cpp-source.html">qwt_slider.cpp</a>.<p>References <a class="el" href="qwt__slider_8cpp-source.html#l00546">layoutSlider()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00117">QwtAbstractSlider::orientation()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00108">QwtAbstractSlider::setOrientation()</a>.<p>Referenced by <a class="el" href="qwt__slider_8cpp-source.html#l00224">setScalePosition()</a>.    </td>  </tr></table><a class="anchor" name="f663f9e1ee5962f796b83d95820a84ae"></a><!-- doxytag: member="QwtSlider::setScalePosition" ref="f663f9e1ee5962f796b83d95820a84ae" args="(ScalePos s)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void QwtSlider::setScalePosition           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="class_qwt_slider.html#10836f1e83b9c8ef8e229bf7c65c3659">ScalePos</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>s</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Change the scale position (and slider orientation). <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>s</em>&nbsp;</td><td>Position of the scale.</td></tr>  </table></dl>A valid combination of scale position and orientation is enforced:<ul><li>if the new scale position is Left or Right, the scale orientation will become Qt::Vertical;</li><li>if the new scale position is Bottom or Top the scale orientation will become Qt::Horizontal;</li><li>if the new scale position is QwtSlider::NoScale, the scale orientation will not change. </li></ul><p>Definition at line <a class="el" href="qwt__slider_8cpp-source.html#l00224">224</a> of file <a class="el" href="qwt__slider_8cpp-source.html">qwt_slider.cpp</a>.<p>References <a class="el" href="qwt__slider_8cpp-source.html#l00546">layoutSlider()</a>, and <a class="el" href="qwt__slider_8cpp-source.html#l00174">setOrientation()</a>.    </td>  </tr></table><a class="anchor" name="a238078ae6ce297e0a39c0404542545d"></a><!-- doxytag: member="QwtSlider::setThumbLength" ref="a238078ae6ce297e0a39c0404542545d" args="(int l)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void QwtSlider::setThumbLength           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>thumbLength</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Set the slider's thumb length. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>thumbLength</em>&nbsp;</td><td>new length </td></tr>  </table></dl><p>Definition at line <a class="el" href="qwt__slider_8cpp-source.html#l00261">261</a> of file <a class="el" href="qwt__slider_8cpp-source.html">qwt_slider.cpp</a>.<p>References <a class="el" href="qwt__slider_8cpp-source.html#l00546">layoutSlider()</a>.    </td>  </tr></table><a class="anchor" name="4e25372df46541d807603791ca6c5bab"></a><!-- doxytag: member="QwtSlider::setThumbWidth" ref="4e25372df46541d807603791ca6c5bab" args="(int w)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void QwtSlider::setThumbWidth           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>w</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Change the width of the thumb. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>w</em>&nbsp;</td><td>new width </td></tr>  </table></dl><p>Definition at line <a class="el" href="qwt__slider_8cpp-source.html#l00277">277</a> of file <a class="el" href="qwt__slider_8cpp-source.html">qwt_slider.cpp</a>.<p>References <a class="el" href="qwt__slider_8cpp-source.html#l00546">layoutSlider()</a>.    </td>  </tr></table><a class="anchor" name="31c4c636f8b762e390beaf501bedcffc"></a><!-- doxytag: member="QwtSlider::sizeHint" ref="31c4c636f8b762e390beaf501bedcffc" args="() const " --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">QSize QwtSlider::sizeHint           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="class_qwt_slider.html#1cc878ed8746de2ea7c33a88f1c4652c">QwtSlider::minimumSizeHint()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__slider_8cpp-source.html#l00767">767</a> of file <a class="el" href="qwt__slider_8cpp-source.html">qwt_slider.cpp</a>.<p>References <a class="el" href="qwt__slider_8cpp-source.html#l00777">minimumSizeHint()</a>.    </td>  </tr></table><a class="anchor" name="e851b71d1694f9df30c2d491334a7b74"></a><!-- doxytag: member="QwtSlider::thumbLength" ref="e851b71d1694f9df30c2d491334a7b74" args="() const " --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int QwtSlider::thumbLength           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Returns:</b></dt><dd>the thumb length. </dd></dl><p>Definition at line <a class="el" href="qwt__slider_8cpp-source.html#l00743">743</a> of file <a class="el" href="qwt__slider_8cpp-source.html">qwt_slider.cpp</a>.    </td>  </tr></table><a class="anchor" name="98c22ffcaa63bd9c9d70ab1cdb55a5a3"></a><!-- doxytag: member="QwtSlider::thumbWidth" ref="98c22ffcaa63bd9c9d70ab1cdb55a5a3" args="() const " --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int QwtSlider::thumbWidth           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Returns:</b></dt><dd>the thumb width. </dd></dl><p>Definition at line <a class="el" href="qwt__slider_8cpp-source.html#l00751">751</a> of file <a class="el" href="qwt__slider_8cpp-source.html">qwt_slider.cpp</a>.    </td>  </tr></table><a class="anchor" name="62380259b0831ad98a1b0ad011f32bea"></a><!-- doxytag: member="QwtSlider::valueChange" ref="62380259b0831ad98a1b0ad011f32bea" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void QwtSlider::valueChange           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Notify change of value. <p><p>Reimplemented from <a class="el" href="class_qwt_abstract_slider.html#2f04dc51e4402b51fef3250bcc99dc7f">QwtAbstractSlider</a>.<p>Definition at line <a class="el" href="qwt__slider_8cpp-source.html#l00684">684</a> of file <a class="el" href="qwt__slider_8cpp-source.html">qwt_slider.cpp</a>.<p>References <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00484">QwtAbstractSlider::valueChange()</a>.    </td>  </tr></table><a class="anchor" name="ce7520db7c6517041a917e31919605f8"></a><!-- doxytag: member="QwtSlider::xyPosition" ref="ce7520db7c6517041a917e31919605f8" args="(double v) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int QwtSlider::xyPosition           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>v</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Find the x/y position for a given value v. <p><p>Definition at line <a class="el" href="qwt__slider_8cpp-source.html#l00453">453</a> of file <a class="el" href="qwt__slider_8cpp-source.html">qwt_slider.cpp</a>.<p>Referenced by <a class="el" href="qwt__slider_8cpp-source.html#l00319">drawSlider()</a>.    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:26:04 2007 for Qwt User's Guide by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -