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 ().