Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.2.1
-
None
Description
The following code:
QTimer t; t.start(-1);
Results in the runtime error:
QObject::startTimer: QTimer cannot have a negative interval
I expected t.start(-1) to behave the same way as t.start(0). The possibility of a runtime error should be documented at http://qt-project.org/doc/qt-5/qtimer.html#interval-prop and http://qt-project.org/doc/qt-5/qobject.html#startTimer