10 #ifndef QWT_DIAL_NEEDLE_H 11 #define QWT_DIAL_NEEDLE_H 33 virtual void setPalette(
const QPalette & );
34 const QPalette &palette()
const;
36 virtual void draw( QPainter *,
const QPointF &
center,
37 double length,
double direction,
38 QPalette::ColorGroup = QPalette::Active )
const;
56 virtual void drawNeedle( QPainter *painter,
57 double length, QPalette::ColorGroup colorGroup )
const = 0;
59 virtual void drawKnob( QPainter *,
double width,
60 const QBrush &,
bool sunken )
const;
95 const QColor &mid = Qt::gray,
const QColor &base = Qt::darkGray );
97 void setWidth(
double width );
101 virtual void drawNeedle( QPainter *,
double length,
141 const QColor &light = Qt::white,
const QColor &dark = Qt::red );
144 virtual void drawNeedle( QPainter *,
145 double length, QPalette::ColorGroup ) const QWT_OVERRIDE;
178 const QColor &dark = Qt::gray );
181 virtual void drawNeedle( QPainter *,
182 double length, QPalette::ColorGroup ) const QWT_OVERRIDE;
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.
An indicator for the wind direction.
A needle pointing to the center.
A needle for dial widgets.
A needle with a triangular shape.