QwtKnob Class Reference
The Knob Widget.
More...
#include <qwt_knob.h>
List of all members.
Detailed Description
The Knob Widget.
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 QwtAbstractScale). Automatic scrolling is enabled when the user presses a mouse button on the scale. For a description of signals, slots and other members, see QwtAbstractSlider.
- See also:
- QwtAbstractSlider and QwtAbstractScale for the descriptions of the inherited members.
Member Enumeration Documentation
Constructor & Destructor Documentation
| QwtKnob::QwtKnob |
( |
QWidget * |
parent = NULL |
) |
[explicit] |
| QwtKnob::~QwtKnob |
( |
|
) |
[virtual] |
Member Function Documentation
| int QwtKnob::borderWidth |
( |
|
) |
const |
| void QwtKnob::draw |
( |
QPainter * |
painter, |
|
|
const QRect & |
rect | |
|
) |
| | [protected] |
Repaint the knob
- Parameters:
-
| painter | Painter |
| rect | Update rectangle |
| void QwtKnob::drawKnob |
( |
QPainter * |
painter, |
|
|
const QRect & |
r | |
|
) |
| | [protected] |
Draw the knob.
- Parameters:
-
| painter | painter |
| r | Bounding rectangle of the knob (without scale) |
| void QwtKnob::drawMarker |
( |
QPainter * |
p, |
|
|
double |
arc, |
|
|
const QColor & |
c | |
|
) |
| | [protected] |
Draw the marker at the knob's front.
- Parameters:
-
| p | Painter |
| arc | Angle of the marker |
| c | Marker color |
| int QwtKnob::knobWidth |
( |
|
) |
const |
Return the width of the knob.
| QSize QwtKnob::minimumSizeHint |
( |
|
) |
const [virtual] |
| void QwtKnob::paintEvent |
( |
QPaintEvent * |
e |
) |
[protected, virtual] |
Repaint the knob
- Parameters:
-
| void QwtKnob::resizeEvent |
( |
QResizeEvent * |
e |
) |
[protected, virtual] |
| void QwtKnob::setBorderWidth |
( |
int |
bw |
) |
|
Set the knob's border width.
- Parameters:
-
| void QwtKnob::setKnobWidth |
( |
int |
w |
) |
|
Change the knob's width.
The specified width must be >= 5, or it will be clipped.
- Parameters:
-
Set the symbol of the knob.
- See also:
- symbol()
| void QwtKnob::setTotalAngle |
( |
double |
angle |
) |
|
Set the total angle by which the knob can be turned.
- Parameters:
-
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.
| QSize QwtKnob::sizeHint |
( |
|
) |
const [virtual] |
| double QwtKnob::totalAngle |
( |
|
) |
const |