Inheritance diagram for QwtKnob:
The QwtKnob widget imitates look and behaviour of a volume knob on a radio. It contains a scale around the knob which is set up automatically or can be configured manually (see QwtScaleIf). Automatic scrolling is enabled when the user presses a mouse button on the scale. For a description of signals, slots and other members, see QwtSliderBase.
Public Types | |
enum | Symbol { Line, Dot } |
Public Member Functions | |
QwtKnob (QWidget *parent=0, const char *name=0) | |
virtual | ~QwtKnob () |
void | setKnobWidth (int w) |
void | setTotalAngle (double angle) |
void | setBorderWidth (int bw) |
int | knobWidth () const |
double | totalAngle () const |
int | borderWidth () const |
void | setSymbol (Symbol) |
Symbol | symbol () const |
virtual QSize | sizeHint () const |
virtual QSize | minimumSizeHint () const |
virtual QSizePolicy | sizePolicy () const |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *e) |
virtual void | resizeEvent (QResizeEvent *e) |
void | draw (QPainter *p, const QRect &ur) |
void | drawKnob (QPainter *p, const QRect &r) |
void | drawMarker (QPainter *p, double arc, const QColor &c) |
|
Symbol
|
|
Constructor.
|
|
Destructor.
|
|
Return the border width.
|
|
Repaint the knob.
|
|
Draw the knob.
|
|
Draw the marker at the knob's front.
|
|
Return the width of the knob.
|
|
Return a minimum size hint.
|
|
Repaint the knob.
|
|
Qt Resize Event.
|
|
Set the knob's border width.
|
|
Change the knob's width. The specified width must be >= 5, or it will be clipped.
|
|
Set the symbol of the knob.
|
|
Set the total angle by which the knob can be turned.
|
|
|
|
Return Fixed/Fixed.
|
|
|
|
Return the total angle.
|