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 bw );
141 int borderWidth()
const;
146 void setMarkerSize(
int );
147 int markerSize()
const;
149 virtual QSize sizeHint()
const;
150 virtual QSize minimumSizeHint()
const;
157 QRect knobRect()
const;
160 virtual void paintEvent( QPaintEvent * );
163 virtual void drawKnob( QPainter *,
const QRectF & )
const;
165 virtual void drawFocusIndicator( QPainter * )
const;
167 virtual void drawMarker( QPainter *,
168 const QRectF &,
double arc )
const;
170 virtual double scrolledTo(
const QPoint & )
const;
Paint a circle in QPalette::ButtonText color.
Paint a triangle in QPalette::ButtonText color.
An abstract base class for slider widgets with a scale.
virtual double scrolledTo(const QPoint &pos) const =0
Determine the value for a new position of the movable part of the slider.
KnobStyle
Style of the knob surface.
Paint a single tick in QPalette::ButtonText color.
virtual bool isScrollPosition(const QPoint &pos) const =0
Determine what to do when the user presses a mouse button.
virtual void changeEvent(QEvent *)
A class for drawing round scales.
Build a gradient from QPalette::Midlight and QPalette::Button.
Fill the knob with a brush from QPalette::Button.