Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

TimeControl Class Reference
[QtBaseModule]

The TimeControl class updates the current time and date in the value space. More...

    #include <TimeControl>

Inherits QObject.

Public Functions

Additional Inherited Members


Detailed Description

The TimeControl class updates the current time and date in the value space.

The current system date and time is kept updated in the following value space keys:

KeyDescription
/UI/DisplayTime/TimeThe current time with minute resolution (eg "22:13").
/UI/DisplayTime/DateThe current date in expanded form (eg. "31 Aug 06").
/UI/DisplayTime/BriefDateThe current date in reduced form (eg. "31/08/06").

While it is possible, and correct, for applications to source this information directly through the QTime and QDate APIs, these values can be used for displaying the time in title bars or other incidental locations. By doing so, these time or date displays will remain in sync with one another.

Invoking this method will disable the creation and updating of the listed value space keys.

The TimeControl class is a server task and is part of the Qt Extended server. It cannot be used by other Qt Extended applications.


Member Function Documentation

TimeControl::TimeControl ( QObject * parent = 0 )

Creates a TimeControl instance with the given parent.


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3