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 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QSlider Class</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">
<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>
<h1 align=center>QSlider Class Reference</h1><br clear="all">
<p>
The QSlider widget provides a vertical or horizontal slider.
<a href="#details">More...</a>
<p>
<code>#include <<a href="qslider-h.html">qslider.h</a>></code>
<p>
Inherits <a href="qrangecontrol.html">QRangeControl</a> and <a href="qwidget.html">QWidget</a>.
<p><a href="qslider-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn">enum<a href="#TickSetting"><b>TickSetting</b></a>{NoMarks=0, Above=1, Left=Above, Below=2, Right=Below, Both=3}</div>
<li><div class="fn"><a href="#91879d"><b>QSlider</b></a>(QWidget*parent, constchar*name=0)</div>
<li><div class="fn"><a href="#09987e"><b>QSlider</b></a>(Orientation, QWidget*parent, constchar*name=0)</div>
<li><div class="fn"><a href="#29b312"><b>QSlider</b></a>(intminValue, intmaxValue, intpageStep, intvalue, Orientation, QWidget*parent, constchar*name=0)</div>
<li><div class="fn">virtualvoid<a href="#7c6fad"><b>setOrientation</b></a>(Orientation)</div>
<li><div class="fn">Orientation<a href="#646dac"><b>orientation</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#4adf7d"><b>setTracking</b></a>(boolenable)</div>
<li><div class="fn">bool<a href="#aefda9"><b>tracking</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#f82be6"><b>setPalette</b></a>(constQPalette&)</div>
<li><div class="fn">QRect<a href="#fef809"><b>sliderRect</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#0c633e"><b>setTickmarks</b></a>(TickSetting)</div>
<li><div class="fn">TickSetting<a href="#145e2a"><b>tickmarks</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#c111f7"><b>setTickInterval</b></a>(int)</div>
<li><div class="fn">int<a href="#d255aa"><b>tickInterval</b></a>()const</div>
<li><div class="fn">void<a href="#d27d34"><b>setMinValue</b></a>(int)</div>
<li><div class="fn">void<a href="#11c797"><b>setMaxValue</b></a>(int)</div>
<li><div class="fn">void<a href="#69c457"><b>setLineStep</b></a>(int)</div>
<li><div class="fn">void<a href="#38a5f2"><b>setPageStep</b></a>(int)</div>
</ul>
<h2>Public Slots</h2>
<ul>
<li><div class="fn">virtualvoid<a href="#a03234"><b>setValue</b></a>(int)</div>
<li><div class="fn">void<a href="#f8da10"><b>addStep</b></a>()</div>
<li><div class="fn">void<a href="#54db92"><b>subtractStep</b></a>()</div>
</ul>
<h2>Signals</h2>
<ul>
<li><div class="fn">void<a href="#ec1dd5"><b>valueChanged</b></a>(intvalue)</div>
<li><div class="fn">void<a href="#2d9c73"><b>sliderPressed</b></a>()</div>
<li><div class="fn">void<a href="#eae8fb"><b>sliderMoved</b></a>(intvalue)</div>
<li><div class="fn">void<a href="#5c3ef1"><b>sliderReleased</b></a>()</div>
</ul>
<h2>Protected Members</h2>
<ul>
<li><div class="fn">virtualvoid<a href="#867b6f"><b>updateMask</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#70a497"><b>valueChange</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#cb0cf3"><b>rangeChange</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#904afa"><b>paintSlider</b></a>(QPainter*, constQColorGroup&, constQRect&)</div>
<li><div class="fn">void<a href="#381bf6"><b>drawTicks</b></a>(QPainter*, constQColorGroup&, int, int, int=1)const</div>
<li><div class="fn">voiddrawWinGroove(QPainter*, QCOORD)<em>(obsolete)</em></div>
<li><div class="fn">voiddrawTicks(QPainter*, int, int, int=1)const<em>(obsolete)</em></div>
<li><div class="fn">virtualint<a href="#d04460"><b>thickness</b></a>()const</div>
</ul>
<h2>Properties</h2>
<table border=1 cellpadding=3 cellspacing=0>
<tr><th>Type<th>Name<th>READ<th>WRITE<th>Options
<tr><td>int<td>minValue<td>minValue<td>setMinValue<td>
<tr><td>int<td>maxValue<td>maxValue<td>setMaxValue<td>
<tr><td>int<td>lineStep<td>lineStep<td>setLineStep<td>
<tr><td>int<td>pageStep<td>pageStep<td>setPageStep<td>
<tr><td>int<td>value<td>value<td>setValue<td>
<tr><td>bool<td>tracking<td>tracking<td>setTracking<td>
<tr><td>Orientation<td>orientation<td>orientation<td>setOrientation<td>
<tr><td>TickSetting<td>tickmarks<td>tickmarks<td>setTickmarks<td>
<tr><td>int<td>tickInterval<td>tickInterval<td>setTickInterval<td>
</table>
<hr><h2><a name="details"></a>Detailed Description</h2>
The QSlider widget provides a vertical or horizontal slider.
<p>
The slider is the classic widget for controlling a bounded value.
It lets the user move a slider along a horizontal or vertical
groove, and translates the slider's position into an integer value
in the legal range.
<p>QSlider inherits <a href="qrangecontrol.html">QRangeControl</a>, which provides the "integer" side of
the slider. <a href="qrangecontrol.html#f2409c">setRange</a>() and <a href="#7b285c">value</a>() are likely to be used by
practically all slider users; see the <a href="qrangecontrol.html">QRangeControl</a> documentation
for information about the many other functions that class provides.
<p>The main functions offered by the slider itself are tickmark and
orientation control; you can use <a href="#0c633e">setTickmarks</a>() to indicate where
you want the tickmarks to be, <a href="#c111f7">setTickInterval</a>() to indicate how many
of them you want, and <a href="#7c6fad">setOrientation</a>() to indicate whether the
slider is to e horizontal or vertical.
<p>A slider has a default <a href="qwidget.html#3d478d">focusPolicy</a>() of <em>WeakWheelFocus,</em> i.e. it
accepts focus on Tab and by using the mouse wheel, and a
suitable keyboard interface.
<p><img src=qslider-m.png> <img src=qslider-w.png>
<p>See also <a href="qscrollbar.html">QScrollBar</a>, <a href="qspinbox.html">QSpinBox</a> and <a href="guibooks.html#fowler">GUI Design Handbook: Slider</a>
<p>Examples:
<a href="xform-xform-cpp.html#QSlider">xform/xform.cpp</a>
<hr><h2>Member Type Documentation</h2>
<h3 class="fn"><a name="TickSetting">QSlider::TickSetting</a></h3>
This enum specifies where the tick marks are to be drawn, relative
to the slider's groove and the handle the user moves. The possible
values are <code>NoMarks</code> (no tickmarks are drawn), <code>Above, Below, Left, Right</code> and <code>Both.</code>
<p><code>NoMarks</code> means to not draw any tickmarks; <code>Both</code> means to draw
tickmarks on both sides of the groove. <code>Above</code> and <code>Below</code> mean
to draw tickmarks above and below the (horizontal) slider. <code>Left</code>
and <code>Right</code> mean to draw tickmarks to the left and right of the
(vertical) slider.
<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="09987e"></a>QSlider::QSlider(<a href="qt.html#Orientation">Orientation</a>orientation, <a href="qwidget.html">QWidget</a>*parent, constchar*name=0)</h3>
<p>Constructs a slider.
<p>The <em>orientation</em> must be QSlider::Vertical or QSlider::Horizontal.
<p>The <em>parent</em> and <em>name</em> arguments are sent to the <a href="qwidget.html">QWidget</a> constructor.
<h3 class="fn"><a name="91879d"></a>QSlider::QSlider(<a href="qwidget.html">QWidget</a>*parent, constchar*name=0)</h3>
<p>Constructs a vertical slider.
<p>The <em>parent</em> and <em>name</em> arguments are sent to the <a href="qwidget.html">QWidget</a> constructor.
<h3 class="fn"><a name="29b312"></a>QSlider::QSlider(intminValue, intmaxValue, intpageStep, intvalue, <a href="qt.html#Orientation">Orientation</a>orientation, <a href="qwidget.html">QWidget</a>*parent, constchar*name=0)</h3>
<p>Constructs a slider.
<p>Arguments:
<ul>
<li><em>minValue</em> is the minimum slider value.
<li><em>maxValue</em> is the maximum slider value.
<li><em>step</em> is the page step value.
<li><em>value</em> is the initial value.
<li><em>orientation</em> must be QSlider::Vertical or QSlider::Horizontal.
</ul>
The <em>parent</em> and <em>name</em> arguments are sent to the <a href="qwidget.html">QWidget</a> constructor.
<h3 class="fn">void<a name="f8da10"></a>QSlider::addStep() <code>[slot]</code></h3>
<p>Moves the slider one <a href="#66a537">pageStep</a>() upwards.
<h3 class="fn">void<a name="381bf6"></a>QSlider::drawTicks(<a href="qpainter.html">QPainter</a>*p, const<a href="qcolorgroup.html">QColorGroup</a>&g, intdist, intw, inti=1)const <code>[protected]</code></h3>
<p>Using <em>p,</em> draws tickmarks at a distance of <em>dist</em> from the edge
of the widget, using <em>w</em> pixels and with an interval of <em>i.</em>
<p>Setting the colorgroup is useful to reuse the code to draw a mask if
the slider supports transparceny.
<p>See also <a href="qwidget.html#efa8f9">setAutoMask</a>() and <a href="#867b6f">updateMask</a>().
<h3 class="fn">void<a name="5c6030"></a>QSlider::drawTicks(<a href="qpainter.html">QPainter</a>*p, intdist, intw, inti=1)const <code>[protected]</code></h3>
<p><b>This function is obsolete.</b> It is provided to keep old source working, and will probably be removed in a future version of Qt. We strongly advise against using it in new code.<p>
\overload
<p>Do not reimplement this function, it's only there for compatibility
reasons. It simply calls the other version with <a href="qwidget.html#d92bf4">colorGroup</a>() as the
second argument.
<h3 class="fn">void<a name="fea6af"></a>QSlider::drawWinGroove(<a href="qpainter.html">QPainter</a>*p, QCOORDc) <code>[protected]</code></h3>
<p><b>This function is obsolete.</b> It is provided to keep old source working, and will probably be removed in a future version of Qt. We strongly advise against using it in new code.<p>
<p>Draws the "groove" on which the slider moves, using the painter <em>p. c</em> gives the distance from the top (or left) edge of the widget to
the center of the groove.
<h3 class="fn">void<a name="5be196"></a>QSlider::focusInEvent(<a href="qfocusevent.html">QFocusEvent</a>*e) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#21a4b8">QWidget.</a>
<h3 class="fn">void<a name="062221"></a>QSlider::focusOutEvent(<a href="qfocusevent.html">QFocusEvent</a>*e) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#de664a">QWidget.</a>
<h3 class="fn">void<a name="c84ef2"></a>QSlider::keyPressEvent(<a href="qkeyevent.html">QKeyEvent</a>*e) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#0a4482">QWidget.</a>
<h3 class="fn">int<a name="50bb6e"></a>QSlider::lineStep()const</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">int<a name="b4a4db"></a>QSlider::maxValue()const</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">int<a name="8ce483"></a>QSlider::minValue()const</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn"><a href="qsize.html">QSize</a><a name="dfd60a"></a>QSlider::minimumSizeHint()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#553e08">QWidget.</a>
<h3 class="fn">void<a name="5ccce3"></a>QSlider::mouseMoveEvent(<a href="qmouseevent.html">QMouseEvent</a>*e) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#a51d92">QWidget.</a>
<h3 class="fn">void<a name="baae36"></a>QSlider::mousePressEvent(<a href="qmouseevent.html">QMouseEvent</a>*e) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#2ecc04">QWidget.</a>
<h3 class="fn">void<a name="600888"></a>QSlider::mouseReleaseEvent(<a href="qmouseevent.html">QMouseEvent</a>*) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#9aa77f">QWidget.</a>
<h3 class="fn"><a href="qt.html#Orientation">Orientation</a><a name="646dac"></a>QSlider::orientation()const</h3>
<p>Returns the slider orientation; QSlider::Vertical or
QSlider::Horizontal.
<p>See also <a href="#7c6fad">setOrientation</a>().
<h3 class="fn">int<a name="66a537"></a>QSlider::pageStep()const</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">void<a name="d7e45a"></a>QSlider::paintEvent(<a href="qpaintevent.html">QPaintEvent</a>*) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#e3d821">QWidget.</a>
<h3 class="fn">void<a name="904afa"></a>QSlider::paintSlider(<a href="qpainter.html">QPainter</a>*p, const<a href="qcolorgroup.html">QColorGroup</a>&g, const<a href="qrect.html">QRect</a>&r) <code>[virtualprotected]</code></h3>
<p>Paints the slider button using painter <em>p</em> with size, a colorgroup
and position given by <em>r.</em> Reimplement this function to change the
look of the slider button.
<p>Setting the colorgroup is useful to reuse the code to draw a mask if
the slider supports transparceny.
<p>See also <a href="qwidget.html#efa8f9">setAutoMask</a>() and <a href="#867b6f">updateMask</a>().
<h3 class="fn">void<a name="cb0cf3"></a>QSlider::rangeChange() <code>[virtualprotected]</code></h3>
<p>Implements the virtual <a href="qrangecontrol.html">QRangeControl</a> function.
<p>Reimplemented from <a href="qrangecontrol.html#a849c2">QRangeControl.</a>
<h3 class="fn">void<a name="7d7415"></a>QSlider::resizeEvent(<a href="qresizeevent.html">QResizeEvent</a>*) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#7d375f">QWidget.</a>
<h3 class="fn">void<a name="69c457"></a>QSlider::setLineStep(inti)</h3>
<p>Sets the line step to <em>i.</em>
<p>Calls the virtual <a href="qrangecontrol.html#e0aaf5">stepChange</a>() function if the new line step is
different from the previous setting.
<p>See also <a href="#50bb6e">lineStep</a>(), <a href="qrangecontrol.html#1b6f6d">QRangeControl::setSteps</a>(), <a href="#38a5f2">setPageStep</a>() and <a href="qrangecontrol.html#f2409c">setRange</a>().
<h3 class="fn">void<a name="11c797"></a>QSlider::setMaxValue(inti)</h3>
<p>A convenience function which just calls
<a href="qrangecontrol.html#f2409c">setRange</a>( <a href="#8ce483">minValue</a>(), i )
<p>See also <a href="qrangecontrol.html#f2409c">setRange</a>().
<h3 class="fn">void<a name="d27d34"></a>QSlider::setMinValue(inti)</h3>
<p>A convenience function which just calls
<a href="qrangecontrol.html#f2409c">setRange</a>( i, <a href="#b4a4db">maxValue</a>() )
<p>See also <a href="qrangecontrol.html#f2409c">setRange</a>().
<h3 class="fn">void<a name="7c6fad"></a>QSlider::setOrientation(<a href="qt.html#Orientation">Orientation</a>orientation) <code>[virtual]</code></h3>
<p>Sets the slider orientation. The <em>orientation</em> must be
QSlider::Vertical or QSlider::Horizontal.
<p>See also <a href="#646dac">orientation</a>().
<h3 class="fn">void<a name="38a5f2"></a>QSlider::setPageStep(inti)</h3>
<p>Sets the page step to <em>i.</em>
<p>Calls the virtual <a href="qrangecontrol.html#e0aaf5">stepChange</a>() function if the new page step is
different from the previous setting.
<p>See also <a href="#66a537">pageStep</a>(), <a href="qrangecontrol.html#1b6f6d">QRangeControl::setSteps</a>(), <a href="#69c457">setLineStep</a>() and <a href="qrangecontrol.html#f2409c">setRange</a>().
<h3 class="fn">void<a name="f82be6"></a>QSlider::setPalette(const<a href="qpalette.html">QPalette</a>&p) <code>[virtual]</code></h3>
<p>Reimplements the virtual function <a href="qwidget.html#d7e4b9">QWidget::setPalette</a>().
<p>Sets the background color to the mid color for Motif style sliders.
<h3 class="fn">void<a name="c111f7"></a>QSlider::setTickInterval(inti) <code>[virtual]</code></h3>
<p>Sets the interval between tickmarks to <em>i.</em> This is a value interval,
not a pixel interval. If <em>i</em> is 0, the slider
will choose between <a href="#50bb6e">lineStep</a>() and <a href="#66a537">pageStep</a>(). The initial value of
<a href="#d255aa">tickInterval</a>() is 0.
<p>See also <a href="#d255aa">tickInterval</a>(), <a href="qrangecontrol.html#7c7645">QRangeControl::lineStep</a>() and <a href="qrangecontrol.html#082f80">QRangeControl::pageStep</a>().
<h3 class="fn">void<a name="0c633e"></a>QSlider::setTickmarks(<a href="qslider.html#TickSetting">TickSetting</a>s)</h3>
<p>Sets the way tickmarks are displayed by the slider. <em>s</em> can take
the following values:
<ul>
<li> <code>NoMarks</code>
<li> <code>Above</code>
<li> <code>Left</code>
<li> <code>Below</code>
<li> <code>Right</code>
<li> <code>Both</code>
</ul>
The initial value is <code>NoMarks.</code>
<p>See also <a href="#145e2a">tickmarks</a>() and <a href="#c111f7">setTickInterval</a>().
<h3 class="fn">void<a name="4adf7d"></a>QSlider::setTracking(boolenable) <code>[virtual]</code></h3>
<p>Enables slider tracking if <em>enable</em> is TRUE, or disables tracking
if <em>enable</em> is FALSE.
<p>If tracking is enabled (default), the slider emits the
<a href="#ec1dd5">valueChanged</a>() signal whenever the slider is being dragged. If
tracking is disabled, the slider emits the valueChanged() signal
when the user releases the mouse button (unless the value happens to
be the same as before).
<p>See also <a href="#aefda9">tracking</a>().
<h3 class="fn">void<a name="a03234"></a>QSlider::setValue(intvalue) <code>[virtualslot]</code></h3>
<p>Makes <a href="qrangecontrol.html#bc1c05">QRangeControl::setValue</a>() available as a slot.
<p>Examples:
<a href="xform-xform-cpp.html#setValue">xform/xform.cpp</a>
<h3 class="fn"><a href="qsize.html">QSize</a><a name="76e58f"></a>QSlider::sizeHint()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#4511d1">QWidget.</a>
<h3 class="fn"><a href="qsizepolicy.html">QSizePolicy</a><a name="ab8a04"></a>QSlider::sizePolicy()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#23726d">QWidget.</a>
<h3 class="fn">void<a name="eae8fb"></a>QSlider::sliderMoved(intvalue) <code>[signal]</code></h3>
<p>This signal is emitted when the slider is dragged, with the
new slider value as an argument.
<h3 class="fn">void<a name="2d9c73"></a>QSlider::sliderPressed() <code>[signal]</code></h3>
<p>This signal is emitted when the user presses the slider with the mouse.
<h3 class="fn"><a href="qrect.html">QRect</a><a name="fef809"></a>QSlider::sliderRect()const</h3>
<p>Returns the slider handle rectangle. (The actual moving-around thing.).
<h3 class="fn">void<a name="5c3ef1"></a>QSlider::sliderReleased() <code>[signal]</code></h3>
<p>This signal is emitted when the user releases the slider with the mouse.
<h3 class="fn">void<a name="40a71b"></a>QSlider::styleChange(<a href="qstyle.html">QStyle</a>&old) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#5e2e23">QWidget.</a>
<h3 class="fn">void<a name="54db92"></a>QSlider::subtractStep() <code>[slot]</code></h3>
<p>Moves the slider one <a href="#66a537">pageStep</a>() downwards.
<h3 class="fn">int<a name="d04460"></a>QSlider::thickness()const <code>[virtualprotected]</code></h3>
<p>Returns the number of pixels to use for the business part of the
slider (i.e. the non-tickmark portion). The remaining space is shared
equally between the tickmark regions. This function and <a href="#76e58f">sizeHint</a>()
are closely related; if you change one, you almost certainly
have to change the other.
<h3 class="fn">int<a name="d255aa"></a>QSlider::tickInterval()const</h3>
<p>Returns the interval between tickmarks. Returns 0 if the slider
chooses between <a href="#66a537">pageStep</a>() and <a href="#50bb6e">lineStep</a>().
<p>See also <a href="#c111f7">setTickInterval</a>().
<h3 class="fn">QSlider::TickSetting<a name="145e2a"></a>QSlider::tickmarks()const</h3>
<p>Returns the tickmark settings for this slider.
<p>See also <a href="#0c633e">setTickmarks</a>().
<h3 class="fn">bool<a name="aefda9"></a>QSlider::tracking()const</h3>
<p>Returns TRUE if tracking is enabled, or FALSE if tracking is disabled.
<p>Tracking is initially enabled.
<p>See also <a href="#4adf7d">setTracking</a>().
<h3 class="fn">void<a name="867b6f"></a>QSlider::updateMask() <code>[virtualprotected]</code></h3>
<p>Reimplementation of <a href="qwidget.html#b8a07f">QWidget::updateMask</a>(). Draws the mask of the
slider when transparency is required.
<p>See also <a href="qwidget.html#efa8f9">QWidget::setAutoMask</a>().
<p>Reimplemented from <a href="qwidget.html#b8a07f">QWidget.</a>
<h3 class="fn">int<a name="7b285c"></a>QSlider::value()const</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Examples:
<a href="xform-xform-cpp.html#value">xform/xform.cpp</a>
<h3 class="fn">void<a name="70a497"></a>QSlider::valueChange() <code>[virtualprotected]</code></h3>
<p>Implements the virtual <a href="qrangecontrol.html">QRangeControl</a> function.
<p>Reimplemented from <a href="qrangecontrol.html#671dc3">QRangeControl.</a>
<h3 class="fn">void<a name="ec1dd5"></a>QSlider::valueChanged(intvalue) <code>[signal]</code></h3>
<p>This signal is emitted when the slider value is changed, with the
new slider value as an argument.
<h3 class="fn">void<a name="5eae2c"></a>QSlider::wheelEvent(<a href="qwheelevent.html">QWheelEvent</a>*e) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#6f6c80">QWidget.</a>
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.2"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright © 1995-2001
<a href="http://www.trolltech.com">Trolltech</a>, all rights reserved.<p><address><hr><div align="center">
<table width="100%" cellspacing="0" border="0"><tr>
<td>Copyright 2001 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.2</div>
</table></div></address></body></html>
|