QwtDialSimpleNeedle - A needle for dial widgets.
Contents
Constructor & Destructor Documentation
QwtDialSimpleNeedle::QwtDialSimpleNeedle(Stylestyle,boolhasKnob=true,constQColor&mid=Qt::gray,constQColor&base=Qt::darkGray)
Constructor
Parameters:style Style
hasKnob With/Without knob
mid Middle color
base Base color
Detailed Description
A needle for dial widgets.
The following colors are used:
• QPalette::Mid
Pointer
• QPalette::Base
Knob
Seealso:QwtDial, QwtCompassMember Enumeration Documentation
enumQwtDialSimpleNeedle::Style
Style of the needle.
EnumeratorArrow Arrow.
Ray A straight line from the center.
Member Function Documentation
voidQwtDialSimpleNeedle::drawNeedle(QPainter*painter,doublelength,QPalette::ColorGroupcolorGroup)const[protected],[virtual]
Draw the needle
Parameters:painter Painter
length Length of the needle
colorGroup Color group, used for painting
Implements QwtDialNeedle.
voidQwtDialSimpleNeedle::setWidth(doublewidth)
Set the width of the needle
Parameters:width Width
Seealso:width()doubleQwtDialSimpleNeedle::width()constReturns:
the width of the needle
Seealso:setWidth()Name
QwtDialSimpleNeedle - A needle for dial widgets.
Synopsis
#include <qwt_dial_needle.h>
Inherits QwtDialNeedle.
PublicTypes
enum Style { Arrow, Ray }
Style of the needle.
PublicMemberFunctionsQwtDialSimpleNeedle (Style, bool hasKnob=true, const QColor &mid=Qt::gray, const QColor
&base=Qt::darkGray)
void setWidth (double width)
double width () const
ProtectedMemberFunctions
virtual void drawNeedle (QPainter *, double length, QPalette::ColorGroup) const
