QwtSlider(3) | Qwt User's Guide | QwtSlider(3) |
QwtSlider - The Slider Widget.
#include <qwt_slider.h>
Inherits QwtAbstractSlider.
enum ScalePosition { NoScale, LeadingScale,
TrailingScale }
QwtSlider (QWidget *parent=NULL)
QwtSlider (Qt::Orientation, QWidget *parent=NULL)
virtual ~QwtSlider ()
Destructor. void setOrientation (Qt::Orientation)
Set the orientation. Qt::Orientation orientation () const
void setScalePosition (ScalePosition)
Change the position of the scale. ScalePosition scalePosition ()
const
void setTrough (bool)
bool hasTrough () const
void setGroove (bool)
bool hasGroove () const
void setHandleSize (const QSize &)
Set the slider's handle size. QSize handleSize () const
void setBorderWidth (int)
Change the slider's border width. int borderWidth () const
void setSpacing (int)
Change the spacing between trough and scale. int spacing () const
virtual QSize sizeHint () const
virtual QSize minimumSizeHint () const
void setScaleDraw (QwtScaleDraw *)
Set a scale draw. const QwtScaleDraw * scaleDraw () const
void setUpdateInterval (int)
Specify the update interval for automatic scrolling. int updateInterval
() const
virtual double scrolledTo (const QPoint &) const
Determine the value for a new position of the slider handle. virtual bool
isScrollPosition (const QPoint &) const
Determine what to do when the user presses a mouse button. virtual void
drawSlider (QPainter *, const QRect &) const
virtual void drawHandle (QPainter *, const QRect &, int pos) const
virtual void mousePressEvent (QMouseEvent *)
virtual void mouseReleaseEvent (QMouseEvent *)
virtual void resizeEvent (QResizeEvent *)
virtual void paintEvent (QPaintEvent *)
virtual void changeEvent (QEvent *)
virtual void timerEvent (QTimerEvent *)
virtual void scaleChange ()
Notify changed scale. QRect sliderRect () const
QRect handleRect () const
The Slider Widget.
QwtSlider is a slider widget which operates on an interval of type double. Its position is related to a scale showing the current value.
The slider can be customized by having a through, a groove - or both.
Position of the scale
See also:
Enumerator
Construct vertical slider in QwtSlider::Trough style with a scale to the left.
The scale is initialized to [0.0, 100.0] and the value set to 0.0.
Parameters:
See also:
Construct a slider in QwtSlider::Trough style
When orientation is Qt::Vertical the scale will be aligned to the left - otherwise at the the top of the slider.
The scale is initialized to [0.0, 100.0] and the value set to 0.0.
Parameters:
Returns:
See also:
Handles QEvent::StyleChange and QEvent::FontChange events
Parameters:
Draw the thumb at a position
Parameters:
Draw the slider into the specified rectangle.
Parameters:
Returns:
Returns:
See also:
Returns:
See also:
Returns:
See also:
Determine what to do when the user presses a mouse button.
Parameters:
Return values:
See also:
Implements QwtAbstractSlider.
Returns:
See also:
Mouse press event handler
Parameters:
Reimplemented from QwtAbstractSlider.
Mouse release event handler
Parameters:
Reimplemented from QwtAbstractSlider.
Returns:
See also:
Qt paint event handler
Parameters:
Qt resize event handler
Parameters:
Returns:
See also:
Returns:
See also:
Determine the value for a new position of the slider handle.
Parameters:
Returns:
See also:
Implements QwtAbstractSlider.
Change the slider's border width. The border width is used for drawing the slider handle and the trough.
Parameters:
See also:
En/Disable the groove
The slider can be cutomized by showing a groove for the handle.
Parameters:
See also:
Set the slider's handle size. When the size is empty the slider handle will be painted with a default size depending on its orientation() and backgroundStyle().
Parameters:
See also:
Set the orientation.
Parameters:
See also:
Set a scale draw. For changing the labels of the scales, it is necessary to derive from QwtScaleDraw and overload QwtScaleDraw::label().
Parameters:
See also:
Change the position of the scale.
Parameters:
See also:
Change the spacing between trough and scale. A spacing of 0 means, that the backbone of the scale is covered by the trough.
The default setting is 4 pixels.
Parameters:
See also:
En/Disable the trough
The slider can be cutomized by showing a trough for the handle.
Parameters:
See also:
Specify the update interval for automatic scrolling. The minimal accepted value is 50 ms.
Parameters:
See also:
Returns:
Returns:
Returns:
See also:
Timer event handler
Handles the timer, when the mouse stays pressed inside the sliderRect().
Parameters:
Returns:
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |