Obsolete Members for QBasicTimer

以下成員源於類 QBasicTimer 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(棄用) void start (int msec , QObject * object )
(棄用) void start (int msec , Qt::TimerType timerType , QObject * obj )
(棄用) int timerId () const

成員函數文檔編製

[deprecated] void QBasicTimer:: start ( int msec , QObject * object )

This function is deprecated. We strongly advise against using it in new code.

Use chrono overload instead.

[deprecated] void QBasicTimer:: start ( int msec , Qt::TimerType timerType , QObject * obj )

This function is deprecated. We strongly advise against using it in new code.

Use chrono overload instead.

這是重載函數。

[noexcept, deprecated] int QBasicTimer:: timerId () const

This function is deprecated. We strongly advise against using it in new code.

返迴計時器 ID。

In new code use id () 代替。

另請參閱 QTimerEvent::timerId ().