📄 class_qwt_slider.html
字号:
</tr></table><a class="anchor" name="e0bbbd25241b84ef8ff86c698004def8"></a><!-- doxytag: member="QwtSlider::draw" ref="e0bbbd25241b84ef8ff86c698004def8" args="(QPainter *p, const QRect &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">( </td> <td class="md" nowrap valign="top">QPainter * </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 & </td> <td class="mdname" nowrap> <em>update_rect</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </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 &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">( </td> <td class="md" nowrap valign="top">QPainter * </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 & </td> <td class="mdname" nowrap> <em>r</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </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> </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 &, 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">( </td> <td class="md" nowrap valign="top">QPainter * </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 & </td> <td class="mdname" nowrap>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>pos</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </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> </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 &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">( </td> <td class="md" nowrap valign="top">const QFont & </td> <td class="mdname1" valign="top" nowrap> <em>oldFont</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </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 &p, int &scrollMode, int &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">( </td> <td class="md" nowrap valign="top">const QPoint & </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 & </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 & </td> <td class="mdname" nowrap> <em>direction</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </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> </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> </td><td>point </td></tr> <tr><td valign="top"></td><td valign="top"><em>scrollMode</em> </td><td>Scrolling mode </td></tr> <tr><td valign="top"></td><td valign="top"><em>direction</em> </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 &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">( </td> <td class="md" nowrap valign="top">const QPoint & </td> <td class="mdname1" valign="top" nowrap> <em>p</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </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">( </td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>update_geometry</em> = <code>true</code> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </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> </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">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -