A needle for dial widgets.
More...
#include <qwt_dial_needle.h>
|
virtual void | drawNeedle (QPainter *, double length, QPalette::ColorGroup) const |
|
virtual void | drawKnob (QPainter *, double width, const QBrush &, bool sunken) const |
| Draw the knob.
|
|
A needle for dial widgets.
The following colors are used:
- QPalette::Mid
Pointer
- QPalette::Base
Knob
- See Also
- QwtDial, QwtCompass
Style of the needle.
Enumerator |
---|
Arrow |
Arrow.
|
Ray |
A straight line from the center.
|
QwtDialSimpleNeedle::QwtDialSimpleNeedle |
( |
Style |
style, |
|
|
bool |
hasKnob = true , |
|
|
const QColor & |
mid = Qt::gray , |
|
|
const QColor & |
base = Qt::darkGray |
|
) |
| |
Constructor
- Parameters
-
style | Style |
hasKnob | With/Without knob |
mid | Middle color |
base | Base color |
void QwtDialSimpleNeedle::drawNeedle |
( |
QPainter * |
painter, |
|
|
double |
length, |
|
|
QPalette::ColorGroup |
colorGroup |
|
) |
| const |
|
protectedvirtual |
Draw the needle
- Parameters
-
painter | Painter |
length | Length of the needle |
colorGroup | Color group, used for painting |
Implements QwtDialNeedle.
void QwtDialSimpleNeedle::setWidth |
( |
double |
width | ) |
|
Set the width of the needle
- Parameters
-
- See Also
- width()
double QwtDialSimpleNeedle::width |
( |
| ) |
const |