Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.11.0 Beta 2, 6.4.0 FF
-
None
-
8
-
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
- relates to
-
QTBUG-67383 Change interval type in QTimer to qint64/QDeadlineTimer
-
- Open
-
- resulted in
-
QTBUG-110059 Use 'std::chrono first' approach for timer methods (like QObject::startTimer, QTimer, QDeadlineTimer etc.)
-
- Open
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-113544 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
491119,4 | Add QChronoTimer | dev | qt/qtbase | Status: NEW | +1 | 0 |