QTimer::callOnTimeout() only exists since Qt 5.12.
Connect to the QTimer::timeout signal instead, this works with older versions as well and is equivalent according to the Qt documentation.
BUG: 422354
FIXED-IN: 3.3.2
QTimer::callOnTimeout() only exists since Qt 5.12.
Connect to the QTimer::timeout signal instead, this works with older versions as well and is equivalent according to the Qt documentation.
BUG: 422354
FIXED-IN: 3.3.2
Compiles fine with Qt 5.9.7 now, and also newer versions (tested with 5.12.7 and 5.14.1).
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Actually, callOnTimeout() is just a template that calls connect() anyway:
template <typename ... Args> QMetaObject::Connection callOnTimeout(Args && ...args) { return QObject::connect(this, &QTimer::timeout, std::forward<Args>(args)... ); }
I'd be ok not having the Qt version check at all and just simply using the ::connect syntax
There were conflicts when I tried to merge the 3.3 branch into master, I think I better leave that to you... ;-)