Download Qwt User's Guide Reference Manual

Transcript
6.18
QwtDial Class Reference
71
Protected Member Functions
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
virtual void paintEvent (QPaintEvent ∗)
virtual void resizeEvent (QResizeEvent ∗)
virtual void keyPressEvent (QKeyEvent ∗)
virtual void updateMask ()
virtual void drawFrame (QPainter ∗p)
virtual void drawContents (QPainter ∗) const
virtual void drawFocusIndicator (QPainter ∗) const
virtual void drawScale (QPainter ∗, const QPoint &center, int radius, double origin, double arcMin,
double arcMax) const
virtual void drawScaleContents (QPainter ∗painter, const QPoint &center, int radius) const
virtual void drawNeedle (QPainter ∗, const QPoint &, int radius, double direction, QPalette::ColorGroup) const
virtual QwtText scaleLabel (double) const
void updateScale ()
virtual void rangeChange ()
virtual void valueChange ()
virtual double getValue (const QPoint &)
virtual void getScrollMode (const QPoint &, int &scrollMode, int &direction)
Friends
• class QwtDialScaleDraw
6.18.1
Detailed Description
QwtDial class provides a rounded range control.
QwtDial is intended as base class for dial widgets like speedometers, compass widgets, clocks ...
A dial contains a scale and a needle indicating the current value of the dial. Depending on Mode one
of them is fixed and the other is rotating. If not isReadOnly() the dial can be rotated by dragging the
mouse or using keyboard inputs (see keyPressEvent()). A dial might be wrapping, what means a rotation
below/above one limit continues on the other limit (f.e compass). The scale might cover any arc of the dial,
its values are related to the origin() of the dial.
Qwt is missing a set of good looking needles (QwtDialNeedle). Contributions are very welcome.
See also:
QwtCompass, QwtAnalogClock, QwtDialNeedle
Note:
The examples/dials example shows different types of dials.
6.18.2
6.18.2.1
Member Enumeration Documentation
enum QwtDial::Shadow
Frame shadow.
Unfortunately it is not possible to use QFrame::Shadow as a property of a widget that is not derived from
QFrame. The following enum is made for the designer only. It is safe to use QFrame::Shadow instead.
Generated on Sun Mar 22 16:44:05 2009 for Qwt User’s Guide by Doxygen