| Qwt User's Guide
    6.0.2
    | 
#include <qwt_slider.h>

| Public Types | |
| enum | BackgroundStyle { Trough = 0x01, Groove = 0x02 } | 
| typedef QFlags< BackgroundStyle > | BackgroundStyles | 
| enum | ScalePos { NoScale, LeftScale, RightScale, TopScale, BottomScale } | 
|  Public Types inherited from QwtAbstractSlider | |
| enum | ScrollMode { ScrNone, ScrMouse, ScrTimer, ScrDirect, ScrPage } | 
| Public Member Functions | |
| QwtSlider (QWidget *parent, Qt::Orientation=Qt::Horizontal, ScalePos=NoScale, BackgroundStyles=Trough) | |
| BackgroundStyles | backgroundStyle () const | 
| int | borderWidth () const | 
| QSize | handleSize () const | 
| virtual QSize | minimumSizeHint () const | 
| const QwtScaleDraw * | scaleDraw () const | 
| ScalePos | scalePosition () const | 
| void | setBackgroundStyle (BackgroundStyles) | 
| void | setBorderWidth (int bw) | 
| void | setHandleSize (int width, int height) | 
| void | setHandleSize (const QSize &) | 
| virtual void | setOrientation (Qt::Orientation) | 
| void | setScaleDraw (QwtScaleDraw *) | 
| void | setScalePosition (ScalePos s) | 
| void | setSpacing (int) | 
| virtual QSize | sizeHint () const | 
| int | spacing () const | 
|  Public Member Functions inherited from QwtAbstractSlider | |
| QwtAbstractSlider (Qt::Orientation, QWidget *parent=NULL) | |
| virtual | ~QwtAbstractSlider () | 
| bool | isReadOnly () const | 
| bool | isValid () const | 
| virtual double | mass () const | 
| Qt::Orientation | orientation () const | 
| virtual void | setMass (double val) | 
| void | setTracking (bool enable) | 
| void | setUpdateTime (int t) | 
| void | setValid (bool valid) | 
| void | stopMoving () | 
|  Public Member Functions inherited from QwtDoubleRange | |
| QwtDoubleRange () | |
| virtual | ~QwtDoubleRange () | 
| virtual void | incPages (int) | 
| double | maxValue () const | 
| double | minValue () const | 
| int | pageSize () const | 
| bool | periodic () const | 
| void | setPeriodic (bool tf) | 
| void | setRange (double vmin, double vmax, double vstep=0.0, int pagesize=1) | 
| void | setStep (double) | 
| double | step () const | 
| double | value () const | 
|  Public Member Functions inherited from QwtAbstractScale | |
| QwtAbstractScale () | |
| virtual | ~QwtAbstractScale () | 
| bool | autoScale () const | 
| const QwtScaleEngine * | scaleEngine () const | 
| QwtScaleEngine * | scaleEngine () | 
| const QwtScaleMap & | scaleMap () const | 
| int | scaleMaxMajor () const | 
| int | scaleMaxMinor () const | 
| void | setAutoScale () | 
| void | setScale (double vmin, double vmax, double step=0.0) | 
| void | setScale (const QwtInterval &, double step=0.0) | 
| void | setScale (const QwtScaleDiv &) | 
| void | setScaleEngine (QwtScaleEngine *) | 
| void | setScaleMaxMajor (int ticks) | 
| void | setScaleMaxMinor (int ticks) | 
| Protected Member Functions | |
| virtual void | changeEvent (QEvent *) | 
| virtual void | drawHandle (QPainter *, const QRect &, int pos) const | 
| virtual void | drawSlider (QPainter *, const QRect &) const | 
| virtual void | getScrollMode (const QPoint &p, QwtAbstractSlider::ScrollMode &, int &direction) const | 
| virtual double | getValue (const QPoint &p) | 
| virtual void | paintEvent (QPaintEvent *) | 
| virtual void | rangeChange () | 
| virtual void | resizeEvent (QResizeEvent *) | 
| virtual void | scaleChange () | 
| QwtScaleDraw * | scaleDraw () | 
| int | transform (double v) const | 
| virtual void | valueChange () | 
|  Protected Member Functions inherited from QwtAbstractSlider | |
| virtual void | keyPressEvent (QKeyEvent *e) | 
| virtual void | mouseMoveEvent (QMouseEvent *e) | 
| double | mouseOffset () const | 
| virtual void | mousePressEvent (QMouseEvent *e) | 
| virtual void | mouseReleaseEvent (QMouseEvent *e) | 
| int | scrollMode () const | 
| void | setMouseOffset (double) | 
| virtual void | setPosition (const QPoint &) | 
| virtual void | timerEvent (QTimerEvent *e) | 
| virtual void | wheelEvent (QWheelEvent *e) | 
|  Protected Member Functions inherited from QwtDoubleRange | |
| double | exactPrevValue () const | 
| double | exactValue () const | 
| double | prevValue () const | 
| virtual void | stepChange () | 
|  Protected Member Functions inherited from QwtAbstractScale | |
| const QwtAbstractScaleDraw * | abstractScaleDraw () const | 
| QwtAbstractScaleDraw * | abstractScaleDraw () | 
| void | rescale (double vmin, double vmax, double step=0.0) | 
| void | setAbstractScaleDraw (QwtAbstractScaleDraw *) | 
| Additional Inherited Members | |
|  Public Slots inherited from QwtAbstractSlider | |
| virtual void | fitValue (double val) | 
| virtual void | incValue (int steps) | 
| virtual void | setReadOnly (bool) | 
| virtual void | setValue (double val) | 
|  Signals inherited from QwtAbstractSlider | |
| void | sliderMoved (double value) | 
| void | sliderPressed () | 
| void | sliderReleased () | 
| void | valueChanged (double value) | 
The Slider Widget.
QwtSlider is a slider widget which operates on an interval of type double. QwtSlider supports different layouts as well as a scale.
 
| enum QwtSlider::ScalePos | 
Scale position. QwtSlider tries to enforce valid combinations of its orientation and scale position:
| 
 | explicit | 
Constructor.
| parent | parent widget | 
| orientation | Orientation of the slider. Can be Qt::Horizontal or Qt::Vertical. Defaults to Qt::Horizontal. | 
| scalePos | Position of the scale. Defaults to QwtSlider::NoScale. | 
| bgStyle | Background style. QwtSlider::Trough draws the slider button in a trough, QwtSlider::Slot draws a slot underneath the button. An or-combination of both may also be used. The default is QwtSlider::Trough. | 
QwtSlider enforces valid combinations of its orientation and scale position. If the combination is invalid, the scale position will be set to NoScale. Valid combinations are:
| QwtSlider::BackgroundStyles QwtSlider::backgroundStyle | ( | ) | const | 
| int QwtSlider::borderWidth | ( | ) | const | 
| 
 | protectedvirtual | 
Draw the thumb at a position
| painter | Painter | 
| sliderRect | Bounding rectangle of the slider | 
| pos | Position of the slider thumb | 
| 
 | protectedvirtual | 
Draw the slider into the specified rectangle.
| painter | Painter | 
| sliderRect | Bounding rectangle of the slider | 
| 
 | protectedvirtual | 
Determine scrolling mode and direction.
| p | point | 
| scrollMode | Scrolling mode | 
| direction | Direction | 
Implements QwtAbstractSlider.
| 
 | protectedvirtual | 
Determine the value corresponding to a specified mouse location.
| pos | Mouse position | 
Implements QwtAbstractSlider.
| QSize QwtSlider::handleSize | ( | ) | const | 
| 
 | virtual | 
Return a minimum size hint.
| 
 | protectedvirtual | 
Qt paint event
| event | Paint event | 
| const QwtScaleDraw * QwtSlider::scaleDraw | ( | ) | const | 
| 
 | protected | 
| void QwtSlider::setBackgroundStyle | ( | BackgroundStyles | style | ) | 
Set the background style.
| void QwtSlider::setBorderWidth | ( | int | width | ) | 
Change the slider's border width.
| width | Border width | 
| void QwtSlider::setHandleSize | ( | int | width, | 
| int | height | ||
| ) | 
| void QwtSlider::setHandleSize | ( | const QSize & | size | ) | 
| 
 | virtual | 
Set the orientation.
| o | Orientation. Allowed values are Qt::Horizontal and Qt::Vertical. | 
If the new orientation and the old scale position are an invalid combination, the scale position will be set to QwtSlider::NoScale.
Reimplemented from QwtAbstractSlider.
| void QwtSlider::setScaleDraw | ( | QwtScaleDraw * | scaleDraw | ) | 
Set a scale draw.
For changing the labels of the scales, it is necessary to derive from QwtScaleDraw and overload QwtScaleDraw::label().
| scaleDraw | ScaleDraw object, that has to be created with new and will be deleted in ~QwtSlider or the next call of setScaleDraw(). | 
| void QwtSlider::setScalePosition | ( | ScalePos | scalePos | ) | 
Change the scale position (and slider orientation).
| scalePos | Position of the scale. | 
A valid combination of scale position and orientation is enforced:
| void QwtSlider::setSpacing | ( | int | spacing | ) | 
Change the spacing between pipe and scale.
A spacing of 0 means, that the backbone of the scale is below the trough.
The default setting is 4 pixels.
| spacing | Number of pixels | 
| 
 | virtual | 
| int QwtSlider::spacing | ( | ) | const | 
| 
 | protected | 
Map and round a value into widget coordinates
| value | Value | 
 1.8.1
 1.8.1