Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-43777

QTimer remainingTime() function returns bad values after 50 days

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.5.1
    • 5.4.0
    • Core: Date/Time
    • None
    • Windows 8.1, Visual Studio 2013 with Qt Add-in
    • 1ac0c4a2f787607269c2b5511a0f9a410d2f5603

      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 ();

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thiago Thiago Macieira
            CarolaC Carola
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes