[Development] QTimer::setInterval() and <chrono>
thiago.macieira at intel.com
Thu Dec 7 17:01:17 CET 2017
On Thursday, 7 December 2017 00:19:14 PST Christian Ehrlicher wrote:
> According to QTimer documentation,
> QTimer::setInterval(std::chrono::milliseconds) is available unconditionally
> in Qt 5.9. But in qtimer.h the std::chrono - functions are guarded with
> QT_HAS_INCLUDE(chrono) which expands to __has_include(chrono) or 0. The
> problem is that gcc 4.8 doesn't know anything about this preprocessor
So you upgrade your compiler.
See also how no version of Visual Studio has __has_include, so the
functionality is disabled with Microsoft's compiler until they implement the
This is a conscious decision.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development