#include <qwt_slider.h>
Inherits QwtSliderBase, and QwtScaleIf.
Inheritance diagram for QwtSlider
Public Types | |
enum | Orientation { Vertical, Horizontal } |
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) | |
~QwtSlider () | |
void | setThumbLength (int l) |
void | setThumbWidth (int w) |
void | setBorderWidth (int bw) |
void | setMargins (int x, int y) |
QSize | sizeHint () const |
Protected Methods | |
virtual void | drawSlider (QPainter *p, const QRect &r) |
double | getValue (const QPoint &p) |
void | getScrollMode ( const QPoint &p, int &scrollMode, int &direction) |
void | resizeEvent (QResizeEvent *e) |
void | paintEvent (QPaintEvent *e) |
void | valueChange () |
void | rangeChange () |
void | scaleChange () |
void | fontChange (const QFont &oldFont) |
QwtSlider is a slider widget which operates on an interval of type double. QwtSlider supports different layouts as well as a scale.
|
Constructor.
|
|
Destructor.
|
|
Draw the slider into the specified rectangle.
|
|
Notify change in font.
|
|
Determine scrolling mode and direction.
Reimplemented from QwtSliderBase. |
|
Determine the value corresponding to a specified mouse location.
Reimplemented from QwtSliderBase. |
|
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.
|
|
Return a recommended size.
|
|
Notify change of value.
Reimplemented from QwtSliderBase. |