36 Q_PROPERTY( Qt::Orientation orientation
37 READ orientation WRITE setOrientation )
39 WRITE setScalePosition )
41 Q_PROPERTY(
bool trough READ hasTrough WRITE setTrough )
42 Q_PROPERTY(
bool groove READ hasGroove WRITE setGroove )
44 Q_PROPERTY( QSize handleSize READ handleSize WRITE setHandleSize )
45 Q_PROPERTY(
int borderWidth READ borderWidth WRITE setBorderWidth )
46 Q_PROPERTY(
int spacing READ spacing WRITE setSpacing )
66 explicit QwtSlider( QWidget *parent = NULL );
67 explicit QwtSlider( Qt::Orientation, QWidget *parent = NULL );
71 void setOrientation( Qt::Orientation );
72 Qt::Orientation orientation()
const;
77 void setTrough(
bool );
78 bool hasTrough()
const;
80 void setGroove(
bool );
81 bool hasGroove()
const;
83 void setHandleSize(
const QSize & );
84 QSize handleSize()
const;
86 void setBorderWidth(
int );
87 int borderWidth()
const;
89 void setSpacing(
int );
96 const QwtScaleDraw *scaleDraw() const;
98 void setUpdateInterval(
int );
99 int updateInterval() const;
102 virtual
double scrolledTo( const QPoint & ) const QWT_OVERRIDE;
103 virtual
bool isScrollPosition( const QPoint & ) const QWT_OVERRIDE;
105 virtual
void drawSlider ( QPainter *, const QRect & ) const;
106 virtual
void drawHandle( QPainter *, const QRect &,
int pos ) const;
108 virtual
void mousePressEvent( QMouseEvent * ) QWT_OVERRIDE;
109 virtual
void mouseReleaseEvent( QMouseEvent * ) QWT_OVERRIDE;
110 virtual
void resizeEvent( QResizeEvent * ) QWT_OVERRIDE;
111 virtual
void paintEvent ( QPaintEvent * ) QWT_OVERRIDE;
112 virtual
void changeEvent( QEvent * ) QWT_OVERRIDE;
113 virtual
void timerEvent( QTimerEvent * ) QWT_OVERRIDE;
115 virtual
bool event( QEvent * ) QWT_OVERRIDE;
117 virtual
void scaleChange() QWT_OVERRIDE;
119 QRect sliderRect() const;
120 QRect handleRect() const;
123 QwtScaleDraw *scaleDraw();
125 void layoutSlider(
bool );
126 void initSlider( Qt::Orientation );
An abstract base class for slider widgets with a scale.
The scale is right of a vertical or below a horizontal slider.
A class for drawing scales.