Qwt Programmer's manual
QwtKnob
QwtKnob - The Knob Widget
#include <qwt_knob.h>
QwtSliderBase, QwtScaleIf
- QwtKnob
- Constructor
- ~QwtKnob
- Destructor
- setKnobWidth
- change the width of the knob
- setTotalAngle
- change the total angle by which
the knob can be turned
- setBorderWidth
- change the border width of the knob
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.
QwtSliderBase and QwtScaleIf for the descriptions
of the inherited members.
Constructor
QwtKnob::QwtKnob(QWidget *parent, const char *name )
- QWidget *parent
- parent widget
- const char *name
- name
Destructor
QwtKnob::~QwtKnob()
Set the total angle by which the knob can be turned
void QwtKnob::setTotalAngle(double angle)
- double angle
- angle in degrees.
The default angle is 270 degrees. It is possible to specify
an angle of more than 360 degrees so that the knob can be
turned several times around its axis.
Change the knob's width.
void QwtKnob::setKnobWidth(int w)
- int w
- new width
The specified width must be >= 5, or it will be clipped.
Set the knob's border width
void QwtKnob::setBorderWidth(int bw)
- int bw
- new border width
Qwt Widget Library 01/01/98