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

QTimer remainingTime() function returns bad values after 50 days

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.5.1
    • 5.4.0
    • Core: Date/Time
    • 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 ();

      Attachments

        For Gerrit Dashboard: QTBUG-43777
        # Subject Branch Project Status CR V

        Activity

          People

            thiago Thiago Macieira
            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