55 Q_PROPERTY(
int lineWidth READ lineWidth WRITE setLineWidth )
56 Q_PROPERTY(
Shadow frameShadow READ frameShadow WRITE setFrameShadow )
57 Q_PROPERTY(
Mode mode READ mode WRITE setMode )
58 Q_PROPERTY(
double origin READ origin WRITE setOrigin )
59 Q_PROPERTY(
double minScaleArc READ minScaleArc WRITE setMinScaleArc )
60 Q_PROPERTY(
double maxScaleArc READ maxScaleArc WRITE setMaxScaleArc )
75 Plain = QFrame::Plain,
78 Raised = QFrame::Raised,
81 Sunken = QFrame::Sunken
94 explicit QwtDial( QWidget *parent = NULL );
97 void setFrameShadow(
Shadow );
98 Shadow frameShadow()
const;
100 void setLineWidth(
int );
101 int lineWidth()
const;
103 void setMode(
Mode );
106 void setScaleArc(
double min,
double max );
108 void setMinScaleArc(
double min );
109 double minScaleArc()
const;
111 void setMaxScaleArc(
double min );
112 double maxScaleArc()
const;
114 virtual void setOrigin(
double );
115 double origin()
const;
121 QRect boundingRect()
const;
122 QRect innerRect()
const;
124 virtual QRect scaleInnerRect()
const;
126 virtual QSize sizeHint()
const;
127 virtual QSize minimumSizeHint()
const;
136 virtual void paintEvent( QPaintEvent * );
139 virtual void drawFrame( QPainter *p );
140 virtual void drawContents( QPainter * )
const;
141 virtual void drawFocusIndicator( QPainter * )
const;
143 void invalidateCache();
145 virtual void drawScale( QPainter *,
146 const QPointF ¢er,
double radius )
const;
148 virtual void drawScaleContents( QPainter *painter,
149 const QPointF ¢er,
double radius )
const;
151 virtual void drawNeedle( QPainter *,
const QPointF &,
152 double radius,
double direction, QPalette::ColorGroup )
const;
154 virtual double scrolledTo(
const QPoint & )
const;
161 void setAngleRange(
double angle,
double span );
162 void drawNeedle( QPainter * )
const;
Mode
Mode controlling whether the needle or the scale is rotating.
virtual void sliderChange()
Calling update()
virtual void wheelEvent(QWheelEvent *)
virtual void scaleChange()
QwtDial class provides a rounded range control.
An abstract base class for slider widgets with a scale.
Base class for needles that can be used in a QwtDial.
virtual double scrolledTo(const QPoint &pos) const =0
Determine the value for a new position of the movable part of the slider.
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.