1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QAbstractSlider Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">  </td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QAbstractSlider Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QAbstractSlider class provides an integer value within a range. <a href="#details">More...</a></p>
<p>Inherits <a href="qwidget.html">QWidget</a>.</p><p>Inherited by <a href="qdial.html">QDial</a>, <a href="qscrollbar.html">QScrollBar</a> and <a href="qslider.html">QSlider</a>.</p><h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qabstractslider.html#SliderAction-enum">SliderAction</a></b> { SliderNoAction, SliderSingleStepAdd, SliderSingleStepSub, SliderPageStepAdd, ..., SliderMove }</li><li><div class="fn" />enum <b><a href="qabstractslider.html#SliderChange-enum">SliderChange</a></b> { SliderRangeChange, SliderOrientationChange, SliderStepsChange, SliderValueChange }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qabstractslider.html#QAbstractSlider">__init__</a></b> (<i>self</i>, QWidget <i>parent</i> = None)</li><li><div class="fn" /><b><a href="qabstractslider.html#changeEvent">changeEvent</a></b> (<i>self</i>, QEvent <i>e</i>)</li><li><div class="fn" />bool <b><a href="qabstractslider.html#event">event</a></b> (<i>self</i>, QEvent <i>e</i>)</li><li><div class="fn" />bool <b><a href="qabstractslider.html#hasTracking">hasTracking</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qabstractslider.html#invertedAppearance">invertedAppearance</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qabstractslider.html#invertedControls">invertedControls</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qabstractslider.html#isSliderDown">isSliderDown</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qabstractslider.html#keyPressEvent">keyPressEvent</a></b> (<i>self</i>, QKeyEvent <i>ev</i>)</li><li><div class="fn" />int <b><a href="qabstractslider.html#maximum">maximum</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qabstractslider.html#minimum">minimum</a></b> (<i>self</i>)</li><li><div class="fn" />Qt.Orientation <b><a href="qabstractslider.html#orientation">orientation</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qabstractslider.html#pageStep">pageStep</a></b> (<i>self</i>)</li><li><div class="fn" />SliderAction <b><a href="qabstractslider.html#repeatAction">repeatAction</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qabstractslider.html#setInvertedAppearance">setInvertedAppearance</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qabstractslider.html#setInvertedControls">setInvertedControls</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qabstractslider.html#setMaximum">setMaximum</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="qabstractslider.html#setMinimum">setMinimum</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="qabstractslider.html#setOrientation">setOrientation</a></b> (<i>self</i>, Qt.Orientation)</li><li><div class="fn" /><b><a href="qabstractslider.html#setPageStep">setPageStep</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="qabstractslider.html#setRange">setRange</a></b> (<i>self</i>, int <i>min</i>, int <i>max</i>)</li><li><div class="fn" /><b><a href="qabstractslider.html#setRepeatAction">setRepeatAction</a></b> (<i>self</i>, SliderAction <i>action</i>, int <i>thresholdTime</i> = 500, int <i>repeatTime</i> = 50)</li><li><div class="fn" /><b><a href="qabstractslider.html#setSingleStep">setSingleStep</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="qabstractslider.html#setSliderDown">setSliderDown</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qabstractslider.html#setSliderPosition">setSliderPosition</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="qabstractslider.html#setTracking">setTracking</a></b> (<i>self</i>, bool <i>enable</i>)</li><li><div class="fn" /><b><a href="qabstractslider.html#setValue">setValue</a></b> (<i>self</i>, int)</li><li><div class="fn" />int <b><a href="qabstractslider.html#singleStep">singleStep</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qabstractslider.html#sliderChange">sliderChange</a></b> (<i>self</i>, SliderChange <i>change</i>)</li><li><div class="fn" />int <b><a href="qabstractslider.html#sliderPosition">sliderPosition</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qabstractslider.html#timerEvent">timerEvent</a></b> (<i>self</i>, QTimerEvent)</li><li><div class="fn" /><b><a href="qabstractslider.html#triggerAction">triggerAction</a></b> (<i>self</i>, SliderAction <i>action</i>)</li><li><div class="fn" />int <b><a href="qabstractslider.html#value">value</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qabstractslider.html#wheelEvent">wheelEvent</a></b> (<i>self</i>, QWheelEvent <i>e</i>)</li></ul><h3>Qt Signals</h3><ul><li><div class="fn" />void <b><a href="qabstractslider.html#actionTriggered">actionTriggered</a></b> (int)</li><li><div class="fn" />void <b><a href="qabstractslider.html#rangeChanged">rangeChanged</a></b> (int,int)</li><li><div class="fn" />void <b><a href="qabstractslider.html#sliderMoved">sliderMoved</a></b> (int)</li><li><div class="fn" />void <b><a href="qabstractslider.html#sliderPressed">sliderPressed</a></b> ()</li><li><div class="fn" />void <b><a href="qabstractslider.html#sliderReleased">sliderReleased</a></b> ()</li><li><div class="fn" />void <b><a href="qabstractslider.html#valueChanged">valueChanged</a></b> (int)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QAbstractSlider class provides an integer value within a range.</p>
<p>The class is designed as a common super class for widgets like <a href="qscrollbar.html">QScrollBar</a>, <a href="qslider.html">QSlider</a> and <a href="qdial.html">QDial</a>.</p>
<p>Here are the main properties of the class:</p>
<ol type="1">
<li><a href="qabstractslider.html#value-prop">value</a>: The bounded integer that QAbstractSlider maintains.</li>
<li><a href="qabstractslider.html#minimum-prop">minimum</a>: The lowest possible value.</li>
<li><a href="qabstractslider.html#maximum-prop">maximum</a>: The highest possible value.</li>
<li><a href="qabstractslider.html#singleStep-prop">singleStep</a>: The smaller of two natural steps that an abstract sliders provides and typically corresponds to the user pressing an arrow key.</li>
<li><a href="qabstractslider.html#pageStep-prop">pageStep</a>: The larger of two natural steps that an abstract slider provides and typically corresponds to the user pressing PageUp or PageDown.</li>
<li><a href="qabstractslider.html#tracking-prop">tracking</a>: Whether slider tracking is enabled.</li>
<li><a href="qabstractslider.html#sliderPosition-prop">sliderPosition</a>: The current position of the slider. If <a href="qabstractslider.html#tracking-prop">tracking</a> is enabled (the default), this is identical to <a href="qabstractslider.html#value-prop">value</a>.</li>
</ol>
<p>Unity (1) may be viewed as a third step size. <a href="qabstractslider.html#value-prop">setValue</a>() lets you set the current value to any integer in the allowed range, not just <a href="qabstractslider.html#minimum-prop">minimum</a>() + <i>n</i> * <a href="qabstractslider.html#singleStep-prop">singleStep</a>() for integer values of <i>n</i>. Some widgets may allow the user to set any value at all; others may just provide multiples of <a href="qabstractslider.html#singleStep-prop">singleStep</a>() or <a href="qabstractslider.html#pageStep-prop">pageStep</a>().</p>
<p>QAbstractSlider emits a comprehensive set of signals:</p>
<table align="center" border="0" cellpadding="2" cellspacing="1">
<tr bgcolor="#A2C511" valign="top">
<th>Signal</th>
<th>Emitted when</th>
</tr>
<tr bgcolor="#F0F0F0" valign="top">
<td><a href="qabstractslider.html#valueChanged">valueChanged</a>()</td>
<td>the value has changed. The <a href="qabstractslider.html#tracking-prop">tracking</a> determines whether this signal is emitted during user interaction.</td>
</tr>
<tr bgcolor="#E0E0E0" valign="top">
<td><a href="qabstractslider.html#sliderPressed">sliderPressed</a>()</td>
<td>the user starts to drag the slider.</td>
</tr>
<tr bgcolor="#F0F0F0" valign="top">
<td><a href="qabstractslider.html#sliderMoved">sliderMoved</a>()</td>
<td>the user drags the slider.</td>
</tr>
<tr bgcolor="#E0E0E0" valign="top">
<td><a href="qabstractslider.html#sliderReleased">sliderReleased</a>()</td>
<td>the user releases the slider.</td>
</tr>
<tr bgcolor="#F0F0F0" valign="top">
<td><a href="qabstractslider.html#actionTriggered">actionTriggered</a>()</td>
<td>a slider action was triggerd.</td>
</tr>
<tr bgcolor="#E0E0E0" valign="top">
<td><a href="qabstractslider.html#rangeChanged">rangeChanged</a>()</td>
<td>a the range has changed.</td>
</tr>
</table>
<br />
<br />
<p>QAbstractSlider provides a virtual <a href="qabstractslider.html#sliderChange">sliderChange</a>() function that is well suited for updating the on-screen representation of sliders. By calling <a href="qabstractslider.html#triggerAction">triggerAction</a>(), subclasses trigger slider actions. Two helper functions <a href="qstyle.html#sliderPositionFromValue">QStyle.sliderPositionFromValue</a>() and <a href="qstyle.html#sliderValueFromPosition">QStyle.sliderValueFromPosition</a>() help subclasses and styles to map screen coordinates to logical range values.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="SliderAction-enum" />QAbstractSlider.SliderAction</h3><table border="1" cellpadding="2" cellspacing="1" width="40%">
<tr>
<th width="60%">Constant</th>
<th width="40%">Value</th>
</tr>
<tr>
<td valign="top"><tt>QAbstractSlider.SliderNoAction</tt></td>
<td align="center" valign="top"><tt>0</tt></td>
</tr>
<tr>
<td valign="top"><tt>QAbstractSlider.SliderSingleStepAdd</tt></td>
<td align="center" valign="top"><tt>1</tt></td>
</tr>
<tr>
<td valign="top"><tt>QAbstractSlider.SliderSingleStepSub</tt></td>
<td align="center" valign="top"><tt>2</tt></td>
</tr>
<tr>
<td valign="top"><tt>QAbstractSlider.SliderPageStepAdd</tt></td>
<td align="center" valign="top"><tt>3</tt></td>
</tr>
<tr>
<td valign="top"><tt>QAbstractSlider.SliderPageStepSub</tt></td>
<td align="center" valign="top"><tt>4</tt></td>
</tr>
<tr>
<td valign="top"><tt>QAbstractSlider.SliderToMinimum</tt></td>
<td align="center" valign="top"><tt>5</tt></td>
</tr>
<tr>
<td valign="top"><tt>QAbstractSlider.SliderToMaximum</tt></td>
<td align="center" valign="top"><tt>6</tt></td>
</tr>
<tr>
<td valign="top"><tt>QAbstractSlider.SliderMove</tt></td>
<td align="center" valign="top"><tt>7</tt></td>
</tr>
</table>
<br />
<br />
<h3 class="fn"><a name="SliderChange-enum" />QAbstractSlider.SliderChange</h3><table border="1" cellpadding="2" cellspacing="1" width="40%">
<tr>
<th width="60%">Constant</th>
<th width="40%">Value</th>
</tr>
<tr>
<td valign="top"><tt>QAbstractSlider.SliderRangeChange</tt></td>
<td align="center" valign="top"><tt>0</tt></td>
</tr>
<tr>
<td valign="top"><tt>QAbstractSlider.SliderOrientationChange</tt></td>
<td align="center" valign="top"><tt>1</tt></td>
</tr>
<tr>
<td valign="top"><tt>QAbstractSlider.SliderStepsChange</tt></td>
<td align="center" valign="top"><tt>2</tt></td>
</tr>
<tr>
<td valign="top"><tt>QAbstractSlider.SliderValueChange</tt></td>
<td align="center" valign="top"><tt>3</tt></td>
</tr>
</table>
<br />
<br />
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QAbstractSlider" />QAbstractSlider.__init__ (<i>self</i>, <a href="qwidget.html">QWidget</a> <i>parent</i> = None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs an abstract slider.</p>
<p>The <i>parent</i> arguments is sent to the <a href="qwidget.html">QWidget</a> constructor.</p>
<p>The <a href="qabstractslider.html#minimum-prop">minimum</a> defaults to 0, the <a href="qabstractslider.html#maximum-prop">maximum</a> to 99, with a <a href="qabstractslider.html#singleStep-prop">singleStep</a> size of 1 and a <a href="qabstractslider.html#pageStep-prop">pageStep</a> size of 10, and an initial <a href="qabstractslider.html#value-prop">value</a> of 0.</p>
<h3 class="fn"><a name="changeEvent" />QAbstractSlider.changeEvent (<i>self</i>, <a href="qevent.html">QEvent</a> <i>e</i>)</h3><h3 class="fn"><a name="event" />bool QAbstractSlider.event (<i>self</i>, <a href="qevent.html">QEvent</a> <i>e</i>)</h3><h3 class="fn"><a name="hasTracking" />bool QAbstractSlider.hasTracking (<i>self</i>)</h3><h3 class="fn"><a name="invertedAppearance" />bool QAbstractSlider.invertedAppearance (<i>self</i>)</h3><h3 class="fn"><a name="invertedControls" />bool QAbstractSlider.invertedControls (<i>self</i>)</h3><h3 class="fn"><a name="isSliderDown" />bool QAbstractSlider.isSliderDown (<i>self</i>)</h3><h3 class="fn"><a name="keyPressEvent" />QAbstractSlider.keyPressEvent (<i>self</i>, <a href="qkeyevent.html">QKeyEvent</a> <i>ev</i>)</h3><h3 class="fn"><a name="maximum" />int QAbstractSlider.maximum (<i>self</i>)</h3><h3 class="fn"><a name="minimum" />int QAbstractSlider.minimum (<i>self</i>)</h3><h3 class="fn"><a name="orientation" /><a href="qt.html#Orientation-enum">Qt.Orientation</a> QAbstractSlider.orientation (<i>self</i>)</h3><h3 class="fn"><a name="pageStep" />int QAbstractSlider.pageStep (<i>self</i>)</h3><h3 class="fn"><a name="repeatAction" /><a href="qabstractslider.html#SliderAction-enum">SliderAction</a> QAbstractSlider.repeatAction (<i>self</i>)</h3><p>Returns the current repeat action.</p>
<p>See also <a href="qabstractslider.html#setRepeatAction">setRepeatAction</a>().</p>
<h3 class="fn"><a name="setInvertedAppearance" />QAbstractSlider.setInvertedAppearance (<i>self</i>, bool)</h3><h3 class="fn"><a name="setInvertedControls" />QAbstractSlider.setInvertedControls (<i>self</i>, bool)</h3><h3 class="fn"><a name="setMaximum" />QAbstractSlider.setMaximum (<i>self</i>, int)</h3><h3 class="fn"><a name="setMinimum" />QAbstractSlider.setMinimum (<i>self</i>, int)</h3><h3 class="fn"><a name="setOrientation" />QAbstractSlider.setOrientation (<i>self</i>, <a href="qt.html#Orientation-enum">Qt.Orientation</a>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setOrientation(Qt::Orientation)</tt>.</p><h3 class="fn"><a name="setPageStep" />QAbstractSlider.setPageStep (<i>self</i>, int)</h3><h3 class="fn"><a name="setRange" />QAbstractSlider.setRange (<i>self</i>, int <i>min</i>, int <i>max</i>)</h3><p>Sets the slider's minimum to <i>min</i> and its maximum to <i>max</i>.</p>
<p>If <i>max</i> is smaller than <i>min</i>, <i>min</i> becomes the only legal value.</p>
<p>See also <a href="qabstractslider.html#minimum-prop">minimum</a> and <a href="qabstractslider.html#maximum-prop">maximum</a>.</p>
<h3 class="fn"><a name="setRepeatAction" />QAbstractSlider.setRepeatAction (<i>self</i>, <a href="qabstractslider.html#SliderAction-enum">SliderAction</a> <i>action</i>, int <i>thresholdTime</i> = 500, int <i>repeatTime</i> = 50)</h3><p>Sets action <i>action</i> to be triggered repetitively in intervals of <i>repeatTime</i>, after an initial delay of <i>thresholdTime</i>.</p>
<p>See also <a href="qabstractslider.html#triggerAction">triggerAction</a>() and <a href="qabstractslider.html#repeatAction">repeatAction</a>().</p>
<h3 class="fn"><a name="setSingleStep" />QAbstractSlider.setSingleStep (<i>self</i>, int)</h3><h3 class="fn"><a name="setSliderDown" />QAbstractSlider.setSliderDown (<i>self</i>, bool)</h3><h3 class="fn"><a name="setSliderPosition" />QAbstractSlider.setSliderPosition (<i>self</i>, int)</h3><h3 class="fn"><a name="setTracking" />QAbstractSlider.setTracking (<i>self</i>, bool <i>enable</i>)</h3><h3 class="fn"><a name="setValue" />QAbstractSlider.setValue (<i>self</i>, int)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setValue(int)</tt>.</p><h3 class="fn"><a name="singleStep" />int QAbstractSlider.singleStep (<i>self</i>)</h3><h3 class="fn"><a name="sliderChange" />QAbstractSlider.sliderChange (<i>self</i>, <a href="qabstractslider.html#SliderChange-enum">SliderChange</a> <i>change</i>)</h3><p>Reimplement this virtual function to track slider changes such as <a href="qabstractslider.html#SliderChange-enum">SliderRangeChange</a>, <a href="qabstractslider.html#SliderChange-enum">SliderOrientationChange</a>, <a href="qabstractslider.html#SliderChange-enum">SliderStepsChange</a>, or <a href="qabstractslider.html#SliderChange-enum">SliderValueChange</a>. The default implementation only updates the display and ignores the <i>change</i> parameter.</p>
<h3 class="fn"><a name="sliderPosition" />int QAbstractSlider.sliderPosition (<i>self</i>)</h3><h3 class="fn"><a name="timerEvent" />QAbstractSlider.timerEvent (<i>self</i>, <a href="qtimerevent.html">QTimerEvent</a>)</h3><h3 class="fn"><a name="triggerAction" />QAbstractSlider.triggerAction (<i>self</i>, <a href="qabstractslider.html#SliderAction-enum">SliderAction</a> <i>action</i>)</h3><p>Triggers a slider <i>action</i>. Possible actions are <a href="qabstractslider.html#SliderAction-enum">SliderSingleStepAdd</a>, <a href="qabstractslider.html#SliderAction-enum">SliderSingleStepSub</a>, <a href="qabstractslider.html#SliderAction-enum">SliderPageStepAdd</a>, <a href="qabstractslider.html#SliderAction-enum">SliderPageStepSub</a>, <a href="qabstractslider.html#SliderAction-enum">SliderToMinimum</a>, <a href="qabstractslider.html#SliderAction-enum">SliderToMaximum</a>, and <a href="qabstractslider.html#SliderAction-enum">SliderMove</a>.</p>
<p>See also <a href="qabstractslider.html#actionTriggered">actionTriggered</a>().</p>
<h3 class="fn"><a name="value" />int QAbstractSlider.value (<i>self</i>)</h3><h3 class="fn"><a name="wheelEvent" />QAbstractSlider.wheelEvent (<i>self</i>, <a href="qwheelevent.html">QWheelEvent</a> <i>e</i>)</h3><hr /><h2>Qt Signal Documentation</h2><h3 class="fn"><a name="actionTriggered" />void actionTriggered (int)</h3><p>This signal is emitted when the slider action <i>action</i> is triggered. Actions are <a href="qabstractslider.html#SliderAction-enum">SliderSingleStepAdd</a>, <a href="qabstractslider.html#SliderAction-enum">SliderSingleStepSub</a>, <a href="qabstractslider.html#SliderAction-enum">SliderPageStepAdd</a>, <a href="qabstractslider.html#SliderAction-enum">SliderPageStepSub</a>, <a href="qabstractslider.html#SliderAction-enum">SliderToMinimum</a>, <a href="qabstractslider.html#SliderAction-enum">SliderToMaximum</a>, and <a href="qabstractslider.html#SliderAction-enum">SliderMove</a>.</p>
<p>When the signal is emitted, the <a href="qabstractslider.html#sliderPosition-prop">sliderPosition</a> has been adjusted according to the action, but the <a href="qabstractslider.html#value-prop">value</a> has not yet been propagated (meaning the <a href="qabstractslider.html#valueChanged">valueChanged</a>() signal was not yet emitted), and the visual display has not been updated. In slots connected to this signal you can thus safely adjust any action by calling <a href="qabstractslider.html#sliderPosition-prop">setSliderPosition</a>() yourself, based on both the action and the slider's value.</p>
<p>See also <a href="qabstractslider.html#triggerAction">triggerAction</a>().</p>
<h3 class="fn"><a name="rangeChanged" />void rangeChanged (int,int)</h3><p>This signal is emitted when the slider range has changed, with <i>min</i> being the new minimum, and <i>max</i> being the new maximum.</p>
<p>See also <a href="qabstractslider.html#minimum-prop">minimum</a> and <a href="qabstractslider.html#maximum-prop">maximum</a>.</p>
<h3 class="fn"><a name="sliderMoved" />void sliderMoved (int)</h3><p>This signal is emitted when <a href="qabstractslider.html#sliderDown-prop">sliderDown</a> is true and the slider moves. This usually happens when the user is dragging the slider. The <i>value</i> is the new slider position.</p>
<p>This signal is emitted even when tracking is turned off.</p>
<p>See also <a href="qabstractslider.html#tracking-prop">setTracking</a>(), <a href="qabstractslider.html#valueChanged">valueChanged</a>(), <a href="qabstractslider.html#sliderDown-prop">isSliderDown</a>(), <a href="qabstractslider.html#sliderPressed">sliderPressed</a>(), and <a href="qabstractslider.html#sliderReleased">sliderReleased</a>().</p>
<h3 class="fn"><a name="sliderPressed" />void sliderPressed ()</h3><p>This signal is emitted when the user presses the slider with the mouse, or programmatically when setSliderDown(true) is called.</p>
<p>See also <a href="qabstractslider.html#sliderReleased">sliderReleased</a>(), <a href="qabstractslider.html#sliderMoved">sliderMoved</a>(), and <a href="qabstractslider.html#sliderDown-prop">isSliderDown</a>().</p>
<h3 class="fn"><a name="sliderReleased" />void sliderReleased ()</h3><p>This signal is emitted when the user releases the slider with the mouse, or programmatically when setSliderDown(false) is called.</p>
<p>See also <a href="qabstractslider.html#sliderPressed">sliderPressed</a>(), <a href="qabstractslider.html#sliderMoved">sliderMoved</a>(), and <a href="qabstractslider.html#sliderDown-prop">sliderDown</a>.</p>
<h3 class="fn"><a name="valueChanged" />void valueChanged (int)</h3><p>This signal is emitted when the slider value has changed, with the new slider <i>value</i> as argument.</p>
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td width="25%">PyQt 4.0.1 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.trolltech.com">Trolltech AS</a> 2006</td><td align="right" width="25%">Qt 4.1.4</td></tr></table></div></address></body></html>
|