Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The TimeControl class updates the current time and date in the value space. More...
#include <TimeControl>
Inherits QObject.
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:
Key | Description |
---|---|
/UI/DisplayTime/Time | The current time with minute resolution (eg "22:13"). |
/UI/DisplayTime/Date | The current date in expanded form (eg. "31 Aug 06"). |
/UI/DisplayTime/BriefDate | The 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.
Creates a TimeControl instance with the given parent.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |