157 qWarning(
"QBasicTimer::start: Timers cannot have negative timeouts");
161 qWarning(
"QBasicTimer::start: QBasicTimer can only be used with threads started with QThread");
165 qWarning(
"QBasicTimer::start: Timers cannot be started from another thread");
183 qWarning(
"QBasicTimer::stop: Failed. Possibly trying to stop from a different thread");
static void releaseTimerId(int id)
static QAbstractEventDispatcher * instance(QThread *thread=nullptr)
Returns a pointer to the event dispatcher object for the specified thread.
virtual bool unregisterTimer(int timerId)=0
Unregisters the timer with the given timerId.
int registerTimer(qint64 interval, Qt::TimerType timerType, QObject *object)
Registers a timer with the specified interval and timerType for the given object and returns the time...
void start(int msec, QObject *obj)
\obsolete Use chrono overload instead.
void stop()
Stops the timer.
QThread * thread() const
Returns the thread in which the object lives.
Combined button and popup list for selecting options.