155 qWarning(
"QBasicTimer::start: Timers cannot have negative timeouts");
159 qWarning(
"QBasicTimer::start: QBasicTimer can only be used with threads started with QThread");
163 qWarning(
"QBasicTimer::start: Timers cannot be started from another thread");
181 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(Qt::TimerId timerId)=0
Qt::TimerId registerTimer(Duration interval, Qt::TimerType timerType, QObject *object)
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.