10 #ifndef QWT_DIAL_NEEDLE_H 11 #define QWT_DIAL_NEEDLE_H 1 34 virtual void setPalette(
const QPalette & );
35 const QPalette &palette()
const;
37 virtual void draw( QPainter *painter,
const QPointF ¢er,
38 double length,
double direction,
39 QPalette::ColorGroup = QPalette::Active )
const;
57 virtual void drawNeedle( QPainter *painter,
58 double length, QPalette::ColorGroup colorGroup )
const = 0;
60 virtual void drawKnob( QPainter *,
double width,
61 const QBrush &,
bool sunken )
const;
96 const QColor &mid = Qt::gray,
const QColor &base = Qt::darkGray );
98 void setWidth(
double width );
102 virtual void drawNeedle( QPainter *,
double length,
103 QPalette::ColorGroup )
const;
142 const QColor &light = Qt::white,
const QColor &dark = Qt::red );
146 double length, QPalette::ColorGroup )
const;
179 const QColor &dark = Qt::gray );
183 double length, QPalette::ColorGroup )
const;
A magnet needle for compass widgets.
Style
Style of the needle.
Style
Style of the needle.
Base class for needles that can be used in a QwtDial.
virtual void drawNeedle(QPainter *painter, double length, QPalette::ColorGroup colorGroup) const =0
Draw the needle.
An indicator for the wind direction.
A needle pointing to the center.
A needle for dial widgets.
A needle with a triangular shape.