10#ifndef QWT_DIAL_NEEDLE_H 
   11#define QWT_DIAL_NEEDLE_H 
   13#include "qwt_global.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;
 
   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,
 
  102        QPalette::ColorGroup ) 
const QWT_OVERRIDE;
 
 
  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.
@ TriangleStyle
A needle with a triangular shape.
An indicator for the wind direction.
@ Style1
A needle pointing to the center.
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.
A needle for dial widgets.
Style
Style of the needle.