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

📄 class_qwt_slider.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 4 页
字号:
  </tr></table><a class="anchor" name="e0bbbd25241b84ef8ff86c698004def8"></a><!-- doxytag: member="QwtSlider::draw" ref="e0bbbd25241b84ef8ff86c698004def8" args="(QPainter *p, const QRect &amp;update_rect)" --><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::draw           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>          <td class="mdname" nowrap> <em>p</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QRect &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>update_rect</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Draw the <a class="el" href="class_qwt_slider.html">QwtSlider</a>. <p><p>Definition at line <a class="el" href="qwt__slider_8cpp-source.html#l00517">517</a> of file <a class="el" href="qwt__slider_8cpp-source.html">qwt_slider.cpp</a>.<p>References <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00164">QwtAbstractScaleDraw::draw()</a>, <a class="el" href="qwt__painter_8cpp-source.html#l00564">QwtPainter::drawFocusRect()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00319">drawSlider()</a>, and <a class="el" href="qwt__slider_8cpp-source.html#l00294">scaleDraw()</a>.<p>Referenced by <a class="el" href="qwt__slider_8cpp-source.html#l00501">paintEvent()</a>.    </td>  </tr></table><a class="anchor" name="9bfe362dcd3f4318595ce85671c96a64"></a><!-- doxytag: member="QwtSlider::drawSlider" ref="9bfe362dcd3f4318595ce85671c96a64" args="(QPainter *p, const QRect &amp;r)" --><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::drawSlider           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>          <td class="mdname" nowrap> <em>p</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QRect &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>r</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Draw the slider into the specified rectangle. <p><p>Definition at line <a class="el" href="qwt__slider_8cpp-source.html#l00319">319</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#l00395">drawThumb()</a>, <a class="el" href="qwt__abstract__slider_8h-source.html#l00087">QwtAbstractSlider::isValid()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00117">QwtAbstractSlider::orientation()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00360">QwtDoubleRange::value()</a>, and <a class="el" href="qwt__slider_8cpp-source.html#l00453">xyPosition()</a>.<p>Referenced by <a class="el" href="qwt__slider_8cpp-source.html#l00517">draw()</a>.    </td>  </tr></table><a class="anchor" name="0a5e8c88a520d1601ca4b3282b6b254a"></a><!-- doxytag: member="QwtSlider::drawThumb" ref="0a5e8c88a520d1601ca4b3282b6b254a" args="(QPainter *p, const QRect &amp;, int pos)" --><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::drawThumb           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>          <td class="mdname" nowrap> <em>p</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QRect &amp;&nbsp;</td>          <td class="mdname" nowrap>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>pos</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Draw the thumb at a position. <p><p>Definition at line <a class="el" href="qwt__slider_8cpp-source.html#l00395">395</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#l00117">QwtAbstractSlider::orientation()</a>.<p>Referenced by <a class="el" href="qwt__slider_8cpp-source.html#l00319">drawSlider()</a>.    </td>  </tr></table><a class="anchor" name="dabf0ae058968d9c68677580c2fa800f"></a><!-- doxytag: member="QwtSlider::fontChange" ref="dabf0ae058968d9c68677580c2fa800f" args="(const QFont &amp;oldFont)" --><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::fontChange           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QFont &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>oldFont</em>          </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 in font. <p><p>Definition at line <a class="el" href="qwt__slider_8cpp-source.html#l00312">312</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="1b901e8ce7cdb3b04cf00caf83dd81af"></a><!-- doxytag: member="QwtSlider::getScrollMode" ref="1b901e8ce7cdb3b04cf00caf83dd81af" args="(const QPoint &amp;p, int &amp;scrollMode, int &amp;direction)" --><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::getScrollMode           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QPoint &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>p</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>scrollMode</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>direction</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Determine scrolling mode and direction. <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>p</em>&nbsp;</td><td>point </td></tr>    <tr><td valign="top"></td><td valign="top"><em>scrollMode</em>&nbsp;</td><td>Scrolling mode </td></tr>    <tr><td valign="top"></td><td valign="top"><em>direction</em>&nbsp;</td><td>Direction </td></tr>  </table></dl><p>Implements <a class="el" href="class_qwt_abstract_slider.html#dcb6819c88cfa27e9ea3d8828479ea0b">QwtAbstractSlider</a>.<p>Definition at line <a class="el" href="qwt__slider_8cpp-source.html#l00472">472</a> of file <a class="el" href="qwt__slider_8cpp-source.html">qwt_slider.cpp</a>.    </td>  </tr></table><a class="anchor" name="9dce1bf10fdcd92feae56dd77a455358"></a><!-- doxytag: member="QwtSlider::getValue" ref="9dce1bf10fdcd92feae56dd77a455358" args="(const QPoint &amp;p)" --><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">double QwtSlider::getValue           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QPoint &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>p</em>          </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>Determine the value corresponding to a specified mouse location. <p><p>Implements <a class="el" href="class_qwt_abstract_slider.html#6e26a993536813c2d9846a28f3c27aa7">QwtAbstractSlider</a>.<p>Definition at line <a class="el" href="qwt__slider_8cpp-source.html#l00459">459</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#l00117">QwtAbstractSlider::orientation()</a>.    </td>  </tr></table><a class="anchor" name="94d3a5a87c2591f21e458ff6aa358009"></a><!-- doxytag: member="QwtSlider::layoutSlider" ref="94d3a5a87c2591f21e458ff6aa358009" args="(bool update=true)" --><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::layoutSlider           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">bool&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>update_geometry</em> = <code>true</code>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Recalculate the slider's geometry and layout based on the current rect and fonts. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>update_geometry</em>&nbsp;</td><td>notify the layout system and call update to redraw the scale </td></tr>  </table></dl><p>Definition at line <a class="el" href="qwt__slider_8cpp-source.html#l00546">546</a> of file <a class="el" href="qwt__slider_8cpp-source.html">qwt_slider.cpp</a>.<p>References <a class="el" href="qwt__scale__draw_8cpp-source.html#l00139">QwtScaleDraw::getBorderDistHint()</a>, <a class="el" href="qwt__scale__draw_8h-source.html#l00102">QwtScaleDraw::move()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00117">QwtAbstractSlider::orientation()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00294">scaleDraw()</a>, and <a class="el" href="qwt__scale__draw_8cpp-source.html#l00589">QwtScaleDraw::setLength()</a>.<p>Referenced by <a class="el" href="qwt__slider_8cpp-source.html#l00312">fontChange()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00692">rangeChange()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00535">resizeEvent()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00305">scaleChange()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00726">setBgStyle()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00245">setBorderWidth()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00708">setMargins()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00174">setOrientation()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00224">setScalePosition()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00261">setThumbLength()</a>, and <a class="el" href="qwt__slider_8cpp-source.html#l00277">setThumbWidth()</a>.    </td>  </tr></table><a class="anchor" name="1cc878ed8746de2ea7c33a88f1c4652c"></a><!-- doxytag: member="QwtSlider::minimumSizeHint" ref="1cc878ed8746de2ea7c33a88f1c4652c" 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::minimumSizeHint           </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>

⌨️ 快捷键说明

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