Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.4.0
-
None
-
Windows 8.1, Visual Studio 2013 with Qt Add-in
-
1ac0c4a2f787607269c2b5511a0f9a410d2f5603
Description
The remainingTime() function of QTimer always returns 0. According to the documentation, this means that the timer is overdue, but it is still running. This example prints "Remaining time: 0" on the console:
QTimer* timer = new QTimer ();
timer->setSingleShot (true);
timer->start (3000);
qDebug () << "Remaining time: " << timer->remainingTime ();