📄 qdial.html
字号:
<p> This signal is emitted when the use begins mouse interaction withthe dial.<p> <p>See also <a href="#dialReleased">dialReleased</a>().<h3 class=fn>void <a name="dialReleased"></a>QDial::dialReleased ()<tt> [signal]</tt></h3><p> This signal is emitted when the use ends mouse interaction withthe dial.<p> <p>See also <a href="#dialPressed">dialPressed</a>().<h3 class=fn>int <a name="lineStep"></a>QDial::lineStep () const</h3><p>Returns the current line step.See the <a href="qdial.html#lineStep-prop">"lineStep"</a> property for details.<h3 class=fn>int <a name="maxValue"></a>QDial::maxValue () const</h3><p>Returns the current maximum value.See the <a href="qdial.html#maxValue-prop">"maxValue"</a> property for details.<h3 class=fn>int <a name="minValue"></a>QDial::minValue () const</h3><p>Returns the current minimum value.See the <a href="qdial.html#minValue-prop">"minValue"</a> property for details.<h3 class=fn>int <a name="notchSize"></a>QDial::notchSize () const</h3><p>Returns the current notch size.See the <a href="qdial.html#notchSize-prop">"notchSize"</a> property for details.<h3 class=fn>double <a name="notchTarget"></a>QDial::notchTarget () const</h3><p>Returns the target number of pixels between notches.See the <a href="qdial.html#notchTarget-prop">"notchTarget"</a> property for details.<h3 class=fn>bool <a name="notchesVisible"></a>QDial::notchesVisible () const</h3><p>Returns TRUE if the notches are shown; otherwise returns FALSE.See the <a href="qdial.html#notchesVisible-prop">"notchesVisible"</a> property for details.<h3 class=fn>int <a name="pageStep"></a>QDial::pageStep () const</h3><p>Returns the current page step.See the <a href="qdial.html#pageStep-prop">"pageStep"</a> property for details.<h3 class=fn>void <a name="rangeChange"></a>QDial::rangeChange ()<tt> [virtual protected]</tt></h3>Reimplemented to ensure tick-marks are consistent with the new range.<p>Reimplemented from <a href="qrangecontrol.html#rangeChange">QRangeControl</a>.<h3 class=fn>void <a name="repaintScreen"></a>QDial::repaintScreen ( const <a href="qrect.html">QRect</a> * cr = 0 )<tt> [virtual protected]</tt></h3>Paints the dial using clip region <em>cr</em>.<h3 class=fn>void <a name="setLineStep"></a>QDial::setLineStep ( int )</h3><p>Sets the current line step.See the <a href="qdial.html#lineStep-prop">"lineStep"</a> property for details.<h3 class=fn>void <a name="setMaxValue"></a>QDial::setMaxValue ( int )</h3><p>Sets the current maximum value.See the <a href="qdial.html#maxValue-prop">"maxValue"</a> property for details.<h3 class=fn>void <a name="setMinValue"></a>QDial::setMinValue ( int )</h3><p>Sets the current minimum value.See the <a href="qdial.html#minValue-prop">"minValue"</a> property for details.<h3 class=fn>void <a name="setNotchTarget"></a>QDial::setNotchTarget ( double )<tt> [virtual]</tt></h3><p>Sets the target number of pixels between notches.See the <a href="qdial.html#notchTarget-prop">"notchTarget"</a> property for details.<h3 class=fn>void <a name="setNotchesVisible"></a>QDial::setNotchesVisible ( bool b )<tt> [virtual slot]</tt></h3><p>Sets whether the notches are shown to <em>b</em>.See the <a href="qdial.html#notchesVisible-prop">"notchesVisible"</a> property for details.<h3 class=fn>void <a name="setPageStep"></a>QDial::setPageStep ( int )</h3><p>Sets the current page step.See the <a href="qdial.html#pageStep-prop">"pageStep"</a> property for details.<h3 class=fn>void <a name="setTracking"></a>QDial::setTracking ( bool enable )<tt> [virtual slot]</tt></h3><p>Sets whether tracking is enabled to <em>enable</em>.See the <a href="qdial.html#tracking-prop">"tracking"</a> property for details.<h3 class=fn>void <a name="setValue"></a>QDial::setValue ( int )<tt> [virtual slot]</tt></h3><p>Sets the current dial value.See the <a href="qdial.html#value-prop">"value"</a> property for details.<h3 class=fn>void <a name="setWrapping"></a>QDial::setWrapping ( bool on )<tt> [virtual slot]</tt></h3><p>Sets whether wrapping is enabled to <em>on</em>.See the <a href="qdial.html#wrapping-prop">"wrapping"</a> property for details.<h3 class=fn>void <a name="subtractLine"></a>QDial::subtractLine ()<tt> [slot]</tt></h3> Decrements the dial's <a href="#value">value</a>() by one <a href="#lineStep">lineStep</a>(). <h3 class=fn>void <a name="subtractPage"></a>QDial::subtractPage ()<tt> [slot]</tt></h3> Decrements the dial's <a href="#value">value</a>() by one <a href="#pageStep">pageStep</a>() of steps. <h3 class=fn>bool <a name="tracking"></a>QDial::tracking () const</h3><p>Returns TRUE if tracking is enabled; otherwise returns FALSE.See the <a href="qdial.html#tracking-prop">"tracking"</a> property for details.<h3 class=fn>int <a name="value"></a>QDial::value () const</h3><p>Returns the current dial value.See the <a href="qdial.html#value-prop">"value"</a> property for details.<h3 class=fn>void <a name="valueChange"></a>QDial::valueChange ()<tt> [virtual protected]</tt></h3>Reimplemented to ensure the display is correct and to emitthe <a href="#valueChanged">valueChanged</a>(int) signal when appropriate.<p>Reimplemented from <a href="qrangecontrol.html#valueChange">QRangeControl</a>.<h3 class=fn>void <a name="valueChanged"></a>QDial::valueChanged ( int value )<tt> [signal]</tt></h3><p> This signal is emitted whenever the dial's <em>value</em> changes. The frequencyof this signal is influenced by <a href="#setTracking">setTracking</a>().<h3 class=fn>bool <a name="wrapping"></a>QDial::wrapping () const</h3><p>Returns TRUE if wrapping is enabled; otherwise returns FALSE.See the <a href="qdial.html#wrapping-prop">"wrapping"</a> property for details.<hr><h2>Property Documentation</h2><h3 class=fn>int <a name="lineStep-prop"></a>lineStep</h3><p>This property holds the current line step.<p>setLineStep() calls the virtual <a href="qrangecontrol.html#stepChange">stepChange</a>() function if the new linestep is different from the previous setting.<p> <p>See also <a href="qrangecontrol.html#setSteps">QRangeControl::setSteps</a>(), <a href="#pageStep-prop">pageStep</a> and <a href="qrangecontrol.html#setRange">setRange</a>().<p>Set this property's value with <a href="#setLineStep">setLineStep</a>() and get this property's value with <a href="#lineStep">lineStep</a>().<h3 class=fn>int <a name="maxValue-prop"></a>maxValue</h3><p>This property holds the current maximum value.<p>When setting this property, the <a href="#minValue-prop">QDial::minValue</a> is adjusted so that therange remains valid if necessary.<p> <p>See also <a href="qrangecontrol.html#setRange">setRange</a>().<p>Set this property's value with <a href="#setMaxValue">setMaxValue</a>() and get this property's value with <a href="#maxValue">maxValue</a>().<h3 class=fn>int <a name="minValue-prop"></a>minValue</h3><p>This property holds the current minimum value.<p>When setting this property, the <a href="#maxValue-prop">QDial::maxValue</a> is adjusted so that therange remains valid if necessary.<p> <p>See also <a href="qrangecontrol.html#setRange">setRange</a>().<p>Set this property's value with <a href="#setMinValue">setMinValue</a>() and get this property's value with <a href="#minValue">minValue</a>().<h3 class=fn>int <a name="notchSize-prop"></a>notchSize</h3><p>This property holds the current notch size.<p>The notch size is in range control units, not pixels, and if possible itis a multiple of <a href="#lineStep">lineStep</a>() that results in an on-screen notch size near<a href="#notchTarget">notchTarget</a>().<p> <p>See also <a href="#notchTarget-prop">notchTarget</a> and <a href="#lineStep-prop">lineStep</a>.<p>Get this property's value with <a href="#notchSize">notchSize</a>().<h3 class=fn>double <a name="notchTarget-prop"></a>notchTarget</h3><p>This property holds the target number of pixels between notches.<p>The notch target is the number of pixels QDial attempts to put betweeneach notch.<p> The actual size may differ from the target size.<p>Set this property's value with <a href="#setNotchTarget">setNotchTarget</a>() and get this property's value with <a href="#notchTarget">notchTarget</a>().<h3 class=fn>bool <a name="notchesVisible-prop"></a>notchesVisible</h3><p>This property holds whether the notches are shown.<p>If TRUE, the notches are shown. If FALSE (the default) notches arenot shown.<p>Set this property's value with <a href="#setNotchesVisible">setNotchesVisible</a>() and get this property's value with <a href="#notchesVisible">notchesVisible</a>().<h3 class=fn>int <a name="pageStep-prop"></a>pageStep</h3><p>This property holds the current page step.<p>setPageStep() calls the virtual <a href="qrangecontrol.html#stepChange">stepChange</a>() function if the new pagestep is different from the previous setting.<p> <p>See also <a href="qrangecontrol.html#stepChange">stepChange</a>().<p>Set this property's value with <a href="#setPageStep">setPageStep</a>() and get this property's value with <a href="#pageStep">pageStep</a>().<h3 class=fn>bool <a name="tracking-prop"></a>tracking</h3><p>This property holds whether tracking is enabled.<p>If TRUE (the default), tracking is enabled. This means that the arrowcan be moved using the mouse; otherwise the arrow cannot be moved withthe mouse.<p>Set this property's value with <a href="#setTracking">setTracking</a>() and get this property's value with <a href="#tracking">tracking</a>().<h3 class=fn>int <a name="value-prop"></a>value</h3><p>This property holds the current dial value.<p>This is guaranteed to be within the range<a href="#minValue-prop">QDial::minValue</a>..<a href="#maxValue-prop">QDial::maxValue</a>.<p> <p>See also <a href="#minValue-prop">minValue</a> and <a href="#maxValue-prop">maxValue</a>.<p>Set this property's value with <a href="#setValue">setValue</a>() and get this property's value with <a href="#value">value</a>().<h3 class=fn>bool <a name="wrapping-prop"></a>wrapping</h3><p>This property holds whether wrapping is enabled.<p>If TRUE, wrapping is enabled. This means that the arrow can be turnedaround 360
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -