Qwt Programmer's manual

QwtKnob


NAME

QwtKnob - The Knob Widget

SYNOPSIS

#include <qwt_knob.h>

INHERITED CLASSES

QwtSliderBase, QwtScaleIf

PUBLIC MEMBERS

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

DESCRIPTION

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.

SEE ALSO

QwtSliderBase and QwtScaleIf for the descriptions of the inherited members.

MEMBER FUNCTION DESCRIPTION


QwtKnob::QwtKnob

Constructor

Syntax

QwtKnob::QwtKnob(QWidget *parent, const char *name )

Parameters

QWidget *parent
parent widget
const char *name
name

QwtKnob::~QwtKnob

Destructor

Syntax

QwtKnob::~QwtKnob()

QwtKnob::setTotalAngle

Set the total angle by which the knob can be turned

Syntax

void QwtKnob::setTotalAngle(double angle)

Parameters

double angle
angle in degrees.

Description

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.

QwtKnob::setKnobWidth

Change the knob's width.

Syntax

void QwtKnob::setKnobWidth(int w)

Parameters

int w
new width

Description

The specified width must be >= 5, or it will be clipped.

QwtKnob::setBorderWidth

Set the knob's border width

Syntax

void QwtKnob::setBorderWidth(int bw)

Parameters

int bw
new border width

Qwt Widget Library 01/01/98