Qwt Programmer's Manual
QwtSlider
QwtSlider - The Slider Widget
#include <qwt_slider.h>
QwtSlider is a slider widget which operates on an interval
of type double. QwtSlider supports different layouts as
well as a scale.
QwtSliderBase, QwtScaleIf
- QwtSlider
- Constructor
- ~QwtSlider
- Destructor
- setThumbLength
- Set the length of the slider's thumb
- setThumbWidth
- Set the length of the slider's thumb
- setBorderWidth
- Set the border width
- setMargins
- Set the internal border distance
QwtSliderBase and QwtScaleIf for the descriptions
of the inherited members.
Constructor
QwtSlider::QwtSlider(QWidget *parent, const char *name, Orientation orient = Horizontal, ScalePos scalePos = None, int bgStyle = BgTrough)
- QWidget *parent
- parent widget
- const char *name
- The Widget's name. Default = 0.
- Orientation Orient
- Orientation of the slider. Can be QwtSlider::Horizontal
or QwtSlider::Vertical.
Defaults to Horizontal.
- ScalePos scalePos
- Position of the scale. Can be QwtSlider::None,
QwtSlider::Left, QwtSlider::Right, QwtSlider::Top,
or QwtSlider::Bottom. Defaults to QwtSlider::None.
- int bgStyle
- Background style. QwtSlider::BgTrough draws the
slider button in a trough, QwtSlider::BgSlot draws
a slot underneath the button. An or-combination of both
may also be used. The default is QwtSlider::BgTrough.
Destructor
QwtSlider::~QwtSlider()
Change the slider's border width
void QwtSlider::setBorderWidth(int bd)
- int bd
- border width
Set the slider's thumb length
void QwtSlider::setThumbLength(int l)
- int l
- new length
Change the width of the thumb
- void QwtSlider::setThumbWidth(int w)
-
- int w
- new width
Set distances between the widget's border and
internals.
void QwtSlider::setMargins(int hor, int vert)
- int hor, int vert
- Margins
Return a recommended size
QSize QwtSlider::sizeHint() const
The return value of sizeHint() depends on the font and the
scale.
Qwt Widget Library 02/04/98