27#ifndef QWT_DIAL_NEEDLE_H
28#define QWT_DIAL_NEEDLE_H
30#include "qwt_global.h"
58 virtual void setPalette(
const QPalette& );
60 const QPalette& palette()
const;
63 virtual void draw( QPainter*,
const QPointF& center,
64 double length,
double direction,
65 QPalette::ColorGroup = QPalette::Active )
const;
84 double length, QPalette::ColorGroup colorGroup )
const = 0;
86 virtual void drawKnob( QPainter*,
double width,
87 const QBrush&,
bool sunken )
const;
148 const QColor& mid = Qt::gray,
const QColor& base = Qt::darkGray );
151 void setWidth(
double width );
153 double width()
const;
156 virtual void drawNeedle( QPainter*,
double length,
157 QPalette::ColorGroup )
const override;
223 const QColor& light = Qt::white,
const QColor& dark = Qt::red );
226 virtual void drawNeedle( QPainter*,
227 double length, QPalette::ColorGroup )
const override;
288 const QColor& dark = Qt::gray );
291 virtual void drawNeedle( QPainter*,
292 double length, QPalette::ColorGroup )
const override;
A magnet needle for compass widgets.
Definition qwt_dial_needle.h:188
Style
Style of the needle .
Definition qwt_dial_needle.h:199
@ TriangleStyle
A needle with a triangular shape .
Definition qwt_dial_needle.h:208
An indicator for the wind direction.
Definition qwt_dial_needle.h:253
Style
Style of the arrow .
Definition qwt_dial_needle.h:264
@ Style1
A needle pointing to the center .
Definition qwt_dial_needle.h:273
Base class for needles that can be used in a QwtDial.
Definition qwt_dial_needle.h:50
virtual void drawNeedle(QPainter *painter, double length, QPalette::ColorGroup colorGroup) const =0
Draw the needle.
A needle for dial widgets.
Definition qwt_dial_needle.h:113
Style
Style of the needle .
Definition qwt_dial_needle.h:124
@ Arrow
Arrow style .
Definition qwt_dial_needle.h:133