[Qt-interest] qTime

Stephen Jackson spjackson42 at gmail.com
Tue May 19 13:45:54 CEST 2009


On Tue, May 19, 2009 Bijay Panda wrote:
>
> Can any one Please tell me how to get system time continuously in Qt as
> QTime::currentTime gives the time as per system clock at the time of
> compilation.It doesn't run onmwards . I want to display the system time
> continuously until the software runs.How can i do that.
> Any help is appriciated.
>
> Thanks  in Advance
>

But QTime::currentTime does what you are asking for: it returns the
current time at the time you call it. See examples/widgets/analogclock
and examples/widgets/analogclock

Don't these example programs work on your platform?

Regards,

Stephen Jackson




More information about the Qt-interest-old mailing list