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
QwtAnalogClock(3) Qwt User's Guide QwtAnalogClock(3)

QwtAnalogClock -

#include <qwt_analog_clock.h>
Inherits QwtDial.


enum Hand { SecondHand, MinuteHand, HourHand, NHands }
 


void setCurrentTime ()
 
void setTime (const QTime &=QTime::currentTime())
 


QwtAnalogClock (QWidget *parent=NULL)
 
virtual ~QwtAnalogClock ()
 
const QwtDialNeedle * hand (Hand) const
 
QwtDialNeedle * hand (Hand)
 
virtual void setHand (Hand, QwtDialNeedle *)
 


virtual void drawHand (QPainter *, Hand, const QPoint &, int radius, double direction, QPalette::ColorGroup) const
 
virtual void drawNeedle (QPainter *, const QPoint &, int radius, double direction, QPalette::ColorGroup) const
 
virtual QwtText scaleLabel (double) const
 

An analog clock.
Example
#include <qwt_analog_clock.h>
QwtAnalogClock *clock = new QwtAnalogClock(...); clock->scaleDraw()->setPenWidth(3); clock->setLineWidth(6); clock->setFrameShadow(QwtDial::Sunken); clock->setTime();
// update the clock every second QTimer *timer = new QTimer(clock); timer->connect(timer, SIGNAL(timeout()), clock, SLOT(setCurrentTime())); timer->start(1000);
Qwt is missing a set of good looking hands. Contributions are very welcome.
Note:
The examples/dials example shows how to use QwtAnalogClock.

Hand type
See also:
setHand(), hand()

Constructor
Parameters:
parent Parent widget

Draw a clock hand
Parameters:
painter Painter
 
hd Specify the type of hand
 
center Center of the clock
 
radius Maximum length for the hands
 
direction Direction of the hand in degrees, counter clockwise
 
cg ColorGroup

Draw the needle. A clock has no single needle but three hands instead. drawNeedle translates value() into directions for the hands and calls drawHand().
Parameters:
painter Painter
 
center Center of the clock
 
radius Maximum length for the hands
 
direction Dummy, not used.
 
cg ColorGroup
See also:
drawHand()
Reimplemented from QwtDial.

Returns:
Clock hand
Parameters:
hd Specifies the type of hand
See also:
setHand()

Returns:
Clock hand
Parameters:
hd Specifies the type of hand
See also:
setHand()

Find the scale label for a given value
Parameters:
value Value
Returns:
Label
Reimplemented from QwtDial.

Set the current time. This is the same as QwtAnalogClock::setTime(), but Qt < 3.0 can't handle default parameters for slots.

Set a clockhand
Parameters:
hand Specifies the type of hand
 
needle Hand
See also:
hand()

Set a time
Parameters:
time Time to display

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.