#include <qwt_slider.h>
Inheritance diagram for QwtSlider::

Public Types | |
| enum | ScalePos { None, Left, Right, Top, Bottom } |
| enum | { BgTrough = 0x1, BgSlot = 0x2 } |
Public Methods | |
| QwtSlider (QWidget *parent, const char *name=0, Orientation orient=Horizontal, ScalePos scalePos=None, int bgStyle=BgTrough) | |
| void | setThumbLength (int l) |
| void | setThumbWidth (int w) |
| void | setBorderWidth (int bw) |
| void | setMargins (int x, int y) |
| virtual QSize | sizeHint () const |
| virtual QSize | minimumSizeHint () const |
| virtual QSizePolicy | sizePolicy () const |
Protected Methods | |
| virtual double | getValue (const QPoint &p) |
| virtual void | getScrollMode (const QPoint &p, int &scrollMode, int &direction) |
| void | draw (QPainter *p, const QRect &update_rect) |
| virtual void | drawSlider (QPainter *p, const QRect &r) |
| virtual void | drawThumb (QPainter *p, const QRect &, int pos) |
| virtual void | resizeEvent (QResizeEvent *e) |
| virtual void | paintEvent (QPaintEvent *e) |
| virtual void | valueChange () |
| virtual void | rangeChange () |
| virtual void | scaleChange () |
| virtual void | fontChange (const QFont &oldFont) |
| void | layoutSlider (bool update=TRUE) |
| int | xyPosition (double v) const |
QwtSlider is a slider widget which operates on an interval of type double. QwtSlider supports different layouts as well as a scale.
|
|
Background style
|
|
|
Position of the scale
|
|
||||||||||||||||||||||||
|
Constructor.
|
|
||||||||||||
|
redraw the slider.
|
|
||||||||||||
|
Draw the slider into the specified rectangle.
|
|
||||||||||||||||
|
Draw the thumb at a position.
|
|
|
Notify change in font.
|
|
||||||||||||||||
|
Determine scrolling mode and direction.
Reimplemented from QwtSliderBase. |
|
|
Determine the value corresponding to a specified mouse location.
Reimplemented from QwtSliderBase. |
|
|
Recalculate the slider's geometry and layout based on.
|
|
|
Return a minimum size hint.
|
|
|
Qt paint event.
|
|
|
Notify change of range.
Reimplemented from QwtDblRange. |
|
|
Qt resize event.
|
|
|
Notify changed scale.
Reimplemented from QwtScaleIf. |
|
|
Change the slider's border width.
|
|
||||||||||||
|
Set distances between the widget's border and internals.
|
|
|
Set the slider's thumb length.
|
|
|
Change the width of the thumb.
|
|
|
|
|
|
|
|
|
Notify change of value.
Reimplemented from QwtSliderBase. |
|
|
Find the x/y position for a given value v.
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001