QwtSlider(3) | Qwt User's Guide | QwtSlider(3) |
QwtSlider -
#include <qwt_slider.h>
Inherits QwtAbstractSlider, and QwtAbstractScale.
enum BGSTYLE { BgTrough = 0x1, BgSlot = 0x2,
BgBoth = BgTrough | BgSlot }
enum ScalePos { NoScale, LeftScale, RightScale,
TopScale, BottomScale }
QwtSlider (QWidget *parent, Qt::Orientation=Qt::Horizontal,
ScalePos=NoScale, BGSTYLE bgStyle=BgTrough)
BGSTYLE bgStyle () const
int borderWidth () const
virtual QSize minimumSizeHint () const
const QwtScaleDraw * scaleDraw () const
ScalePos scalePosition () const
void setBgStyle (BGSTYLE)
void setBorderWidth (int bw)
void setMargins (int x, int y)
virtual void setOrientation (Qt::Orientation)
void setScaleDraw (QwtScaleDraw *)
void setScalePosition (ScalePos s)
void setThumbLength (int l)
void setThumbWidth (int w)
virtual QSize sizeHint () const
int thumbLength () const
int thumbWidth () const
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 fontChange (const QFont &oldFont)
virtual void getScrollMode (const QPoint &p, int &scrollMode,
int &direction)
virtual double getValue (const QPoint &p)
void layoutSlider (bool update=true)
virtual void paintEvent (QPaintEvent *e)
virtual void rangeChange ()
virtual void resizeEvent (QResizeEvent *e)
virtual void scaleChange ()
QwtScaleDraw * scaleDraw ()
virtual void valueChange ()
int xyPosition (double v) const
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.
See also:
Background style.
See also:
Scale position. QwtSlider tries to enforce valid combinations of its orientation and scale position:
See also:
Constructor. Parameters:
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:
Returns:
Returns:
Draw the slider into the specified rectangle.
Parameters:
Draw the thumb at a position
Parameters:
Determine scrolling mode and direction. Parameters:
Implements QwtAbstractSlider.
Determine the value corresponding to a specified mouse location.
Parameters:
Implements QwtAbstractSlider.
Recalculate the slider's geometry and layout based on the current rect and fonts.
Parameters:
Return a minimum size hint. Warning:
Qt paint event
Parameters:
Returns:
See also:
Returns:
See also:
Set the background style.
Change the slider's border width. Parameters:
Set distances between the widget's border and internals. Parameters:
Set the orientation. Parameters:
If the new orientation and the old scale position are an invalid combination, the scale position will be set to QwtSlider::NoScale.
See also:
Reimplemented from QwtAbstractSlider.
Set a scale draw. For changing the labels of the scales, it is necessary to derive from QwtScaleDraw and overload QwtScaleDraw::label().
Parameters:
Change the scale position (and slider orientation). Parameters:
A valid combination of scale position and orientation is enforced:
Set the slider's thumb length. Parameters:
Change the width of the thumb. Parameters:
Returns:
Returns:
Returns:
Find the x/y position for a given value v
Parameters:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 | Version 5.2.3 |