GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
QwtKnob(3) Qwt User's Guide QwtKnob(3)

QwtKnob -

#include <qwt_knob.h>
Inherits QwtAbstractSlider, and QwtAbstractScale.


enum Symbol { Line, Dot }
 


QwtKnob (QWidget *parent=NULL)
 
virtual ~QwtKnob ()
 
int borderWidth () const
 
int knobWidth () const
 
virtual QSize minimumSizeHint () const
 
const QwtRoundScaleDraw * scaleDraw () const
 
QwtRoundScaleDraw * scaleDraw ()
 
void setBorderWidth (int bw)
 
void setKnobWidth (int w)
 
void setScaleDraw (QwtRoundScaleDraw *)
 
void setSymbol (Symbol)
 
void setTotalAngle (double angle)
 
virtual QSize sizeHint () const
 
Symbol symbol () const
 
double totalAngle () const
 


void draw (QPainter *p, const QRect &ur)
 
void drawKnob (QPainter *p, const QRect &r)
 
void drawMarker (QPainter *p, double arc, const QColor &c)
 
virtual void paintEvent (QPaintEvent *e)
 
virtual void resizeEvent (QResizeEvent *e)
 

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.

Symbol
See also:
QwtKnob::QwtKnob()

Constructor
Parameters:
parent Parent widget

Repaint the knob
Parameters:
painter Painter
 
rect Update rectangle

Draw the knob. Parameters:
painter painter
 
r Bounding rectangle of the knob (without scale)

Draw the marker at the knob's front. Parameters:
p Painter
 
arc Angle of the marker
 
c Marker color

Return a minimum size hint. Warning:
The return value of QwtKnob::minimumSizeHint() depends on the font and the scale.

Repaint the knob
Parameters:
e Paint event

Qt Resize Event

Returns:
the scale draw of the knob
See also:
setScaleDraw()

Returns:
the scale draw of the knob
See also:
setScaleDraw()

Set the knob's border width. Parameters:
bw new border width

Change the knob's width. The specified width must be >= 5, or it will be clipped.
Parameters:
w New width

Change the scale draw of the knob
For changing the labels of the scales, it is necessary to derive from QwtRoundScaleDraw and overload QwtRoundScaleDraw::label().
See also:
scaleDraw()

Set the symbol of the knob. See also:
symbol()

Set the total angle by which the knob can be turned. Parameters:
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.

Returns:
minimumSizeHint()

Returns:
symbol of the knob
See also:
setSymbol()

Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 Version 5.2.3

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.