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

Add QChronoTimer

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • P2: Important
    • 6.8.0 FF
    • 5.11.0 Beta 2, 6.4.0 FF
    • Core: Event loop
    • None
    • 8
    • bd764cc1c (dev)
    • Foundation PM Prioritized

    Description

      We can't port QTimer to std::chrono (or even qint64) timeouts before Qt 7 (QTBUG-67383), but we could provide, as a stop-gap, a new class QChronoTimer that then becomes Q7Timer.

      Now QTimer::start(int msec) accepts only int values which corresponds to ~ 24 days as maximum time interval. Please change interval type in QTimer to qint64 to allow more easily create schedulers with big time intervals - months, etc.

      QTimer::start(std::chrono::milliseconds msec) does not work for this as value converted to int inside it, which is wrong I think.

      Attachments

        Issue Links

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

          Activity

            People

              ahmad.samir Ahmad Samir
              mmutz Marc Mutz
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes