48 Q_PROPERTY(
KnobStyle knobStyle READ knobStyle WRITE setKnobStyle )
49 Q_PROPERTY(
int knobWidth READ knobWidth WRITE setKnobWidth )
50 Q_PROPERTY( Qt::Alignment alignment READ alignment WRITE setAlignment )
51 Q_PROPERTY(
double totalAngle READ totalAngle WRITE setTotalAngle )
52 Q_PROPERTY(
int numTurns READ numTurns WRITE setNumTurns )
53 Q_PROPERTY( MarkerStyle markerStyle READ markerStyle WRITE setMarkerStyle )
54 Q_PROPERTY(
int markerSize READ markerSize WRITE setMarkerSize )
55 Q_PROPERTY(
int borderWidth READ borderWidth WRITE setBorderWidth )
122 explicit QwtKnob( QWidget* parent = NULL );
125 void setAlignment( Qt::Alignment );
126 Qt::Alignment alignment()
const;
128 void setKnobWidth(
int );
129 int knobWidth()
const;
131 void setNumTurns(
int );
132 int numTurns()
const;
134 void setTotalAngle (
double angle );
135 double totalAngle()
const;
140 void setBorderWidth(
int );
141 int borderWidth()
const;
146 void setMarkerSize(
int );
147 int markerSize()
const;
154 const QwtRoundScaleDraw *scaleDraw() const;
155 QwtRoundScaleDraw *scaleDraw();
157 QRect knobRect() const;
160 virtual
void paintEvent( QPaintEvent * ) QWT_OVERRIDE;
161 virtual
void changeEvent( QEvent * ) QWT_OVERRIDE;
163 virtual
void drawKnob( QPainter *, const QRectF & ) const;
165 virtual
void drawFocusIndicator( QPainter * ) const;
167 virtual
void drawMarker( QPainter *,
168 const QRectF &,
double angle ) const;
170 virtual
double scrolledTo( const QPoint & ) const QWT_OVERRIDE;
171 virtual
bool isScrollPosition( const QPoint & ) const QWT_OVERRIDE;
Paint a circle in QPalette::ButtonText color.
Paint a triangle in QPalette::ButtonText color.
An abstract base class for slider widgets with a scale.
KnobStyle
Style of the knob surface.
Paint a single tick in QPalette::ButtonText color.
A class for drawing round scales.
Build a gradient from QPalette::Midlight and QPalette::Button.
Fill the knob with a brush from QPalette::Button.