Details
-
Suggestion
-
Resolution: Fixed
-
P2: Important
-
5.11.0 Beta 2, 6.4.0 FF
-
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
- relates to
-
QTBUG-67383 Change interval type in QTimer to qint64/QDeadlineTimer
- Open
-
PYSIDE-2620 Adapt to 6.8
- Closed
- resulted in
-
QTBUG-110059 Use 'std::chrono first' approach for timer methods (like QObject::startTimer, QTimer, QDeadlineTimer etc.)
- Open
For Gerrit Dashboard: QTBUG-113544 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
491119,38 | Add QChronoTimer, a timer with nanoseconds precision | dev | qt/qtbase | Status: MERGED | +2 | 0 |