View Full Version : about currentTime()
tkms
30th January 2009, 01:08
I use TableView.
How to show currentTime in Label?
aamer4yu
30th January 2009, 09:57
And where is this Label ?
If u are using tableview, you must be having your own model. In the model, return current time using QTime::toString() from data method.
^NyAw^
30th January 2009, 10:11
Hi,
QString qCurrentTime = QTime::currentTime().toString(QString("hh:mm:ss"));
myLabelPointer->setText(qCurrentTime );
Just take a look at QTime methods and functions
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.