📄 class_qwt_counter.html
字号:
<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">bool QwtCounter::event </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">QEvent * </td> <td class="mdname1" valign="top" nowrap> <em>e</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>Handle PolishRequest events <p>Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00206">206</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.<p>References <a class="el" href="qwt__counter_8cpp-source.html#l00151">polish()</a>. </td> </tr></table><a class="anchor" name="9c81b37e547358cc588311d941649de1"></a><!-- doxytag: member="QwtCounter::incSteps" ref="9c81b37e547358cc588311d941649de1" args="(QwtCounter::Button btn) 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 QwtCounter::incSteps </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_qwt_counter.html#027cfd91946ca9a19a1d606411e0f374">QwtCounter::Button</a> </td> <td class="mdname1" valign="top" nowrap> <em>btn</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>Returns:</b></dt><dd>the number of steps by which a specified button increments the value or 0 if the button is invalid. </dd></dl><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>btn</em> </td><td>One of <code>QwtCounter::Button1</code>, <code>QwtCounter::Button2</code>, <code>QwtCounter::Button3</code> </td></tr> </table></dl><p>Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00367">367</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.<p>Referenced by <a class="el" href="qwt__counter_8cpp-source.html#l00592">stepButton1()</a>, <a class="el" href="qwt__counter_8cpp-source.html#l00604">stepButton2()</a>, and <a class="el" href="qwt__counter_8cpp-source.html#l00616">stepButton3()</a>. </td> </tr></table><a class="anchor" name="afdc19bff96fcafc4b8ed8e3bf7bf07b"></a><!-- doxytag: member="QwtCounter::keyPressEvent" ref="afdc19bff96fcafc4b8ed8e3bf7bf07b" args="(QKeyEvent *)" --><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 QwtCounter::keyPressEvent </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">QKeyEvent * </td> <td class="mdname1" valign="top" nowrap> <em>e</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>Handles key events<p><ul><li>Ctrl + Qt::Key_Home Step to <a class="el" href="class_qwt_double_range.html#8b8650a6f8a96144d3af21207ee71637">minValue()</a></li><li>Ctrl + Qt::Key_End Step to <a class="el" href="class_qwt_double_range.html#215275a1a8b4218a424ee8444c7fe409">maxValue()</a></li><li>Qt::Key_Up Increment by incSteps(QwtCounter::Button1)</li><li>Qt::Key_Down Decrement by incSteps(QwtCounter::Button1)</li><li>Qt::Key_PageUp Increment by incSteps(QwtCounter::Button2)</li><li>Qt::Key_PageDown Decrement by incSteps(QwtCounter::Button2)</li><li>Shift + Qt::Key_PageUp Increment by incSteps(QwtCounter::Button3)</li><li>Shift + Qt::Key_PageDown Decrement by incSteps(QwtCounter::Button3) </li></ul><p>Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00236">236</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.<p>References <a class="el" href="qwt__double__range_8cpp-source.html#l00259">QwtDoubleRange::incValue()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00326">QwtDoubleRange::maxValue()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00339">QwtDoubleRange::minValue()</a>, and <a class="el" href="qwt__counter_8cpp-source.html#l00382">setValue()</a>. </td> </tr></table><a class="anchor" name="cf0edc717951ef75d94789b68cd073e6"></a><!-- doxytag: member="QwtCounter::maxVal" ref="cf0edc717951ef75d94789b68cd073e6" 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">double QwtCounter::maxVal </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</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>returns the maximum value of the range <p><p>Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00574">574</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.<p>References <a class="el" href="qwt__double__range_8cpp-source.html#l00326">QwtDoubleRange::maxValue()</a>. </td> </tr></table><a class="anchor" name="491c846d83a5b7e6de27bc98de70279e"></a><!-- doxytag: member="QwtCounter::minVal" ref="491c846d83a5b7e6de27bc98de70279e" 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">double QwtCounter::minVal </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</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>returns the minimum value of the range <p><p>Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00562">562</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.<p>References <a class="el" href="qwt__double__range_8cpp-source.html#l00339">QwtDoubleRange::minValue()</a>. </td> </tr></table><a class="anchor" name="c160c5e7a1c7f858b7f52ff0904ea142"></a><!-- doxytag: member="QwtCounter::numButtons" ref="c160c5e7a1c7f858b7f52ff0904ea142" 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 QwtCounter::numButtons </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</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>Returns:</b></dt><dd>The number of buttons on each side of the widget. </dd></dl><p>Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00466">466</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>. </td> </tr></table><a class="anchor" name="19824b7542778b23372fb77fac75beb8"></a><!-- doxytag: member="QwtCounter::polish" ref="19824b7542778b23372fb77fac75beb8" 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 QwtCounter::polish </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the minimum width for the buttons <p>Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00151">151</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.<p>Referenced by <a class="el" href="qwt__counter_8cpp-source.html#l00206">event()</a>. </td> </tr></table><a class="anchor" name="4fd4e750b1f5a852250e57778a3e4159"></a><!-- doxytag: member="QwtCounter::rangeChange" ref="4fd4e750b1f5a852250e57778a3e4159" 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 QwtCounter::rangeChange </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </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 of range. <p>This function updates the enabled property of all buttons contained in <a class="el" href="class_qwt_counter.html">QwtCounter</a>. <p>Reimplemented from <a class="el" href="class_qwt_double_range.html#3583134a1ac32706aa4742088bb9d4dc">QwtDoubleRange</a>.<p>Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00507">507</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>. </td> </tr></table><a class="anchor" name="2d2f4bf2813d2aa30c2fb9ec7a90163c"></a><!-- doxytag: member="QwtCounter::setEditable" ref="2d2f4bf2813d2aa30c2fb9ec7a90163c" args="(bool)" --><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 QwtCounter::setEditable </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>editable</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Allow/disallow the user to manually edit the value. <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>editable</em> </td><td>true enables editing </td></tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -