Obsolete Members for QAbstractEventDispatcher

以下成员源于类 QAbstractEventDispatcher 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) bool filterEvent (void * message )
(obsolete) virtual void flush () = 0
(obsolete) virtual bool hasPendingEvents () = 0
(obsolete) void registerTimer (int timerId , int interval , QObject * object )
(obsolete) int registerTimer (int interval , QObject * object )

成员函数文档编制

bool QAbstractEventDispatcher:: filterEvent ( void * message )

调用 filterNativeEvent () with an empty eventType and message 。此函数返回 true as soon as an event filter returns true , and false otherwise to indicate that the processing of the event should continue.

[pure virtual] void QAbstractEventDispatcher:: flush ()

Depending from the event dispatcher implementation does nothing or calls QApplication::sendPostedEvents ().

[pure virtual] bool QAbstractEventDispatcher:: hasPendingEvents ()

返回 true if there is an event waiting; otherwise returns false. This function is an implementation detail for QCoreApplication::hasPendingEvents () and must not be called directly.

void QAbstractEventDispatcher:: registerTimer ( int timerId , int interval , QObject * object )

注册计时器采用指定 timerId and interval 为给定 object .

int QAbstractEventDispatcher:: registerTimer ( int interval , QObject * object )

Registers a timer with the specified interval 为给定 object and returns the timer id.