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

QTimer remainingTime() function returns bad values after 50 days

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.4.0
    • Fix Version/s: 5.5.1
    • Component/s: Core: Date/Time
    • Labels:
      None
    • Environment:
      Windows 8.1, Visual Studio 2013 with Qt Add-in
    • Commits:
      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 ();

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes