QTimerEvent Class Reference

[ QtCore module]

The QTimerEvent class contains parameters that describe a timer 事件。 更多...

继承 QEvent .

方法


详细描述

The QTimerEvent class contains parameters that describe a timer 事件。

Timer events are sent at regular intervals to objects that have started one or more timers. Each timer has a unique identifier. A timer is started with QObject.startTimer ().

QTimer class provides a high-level programming interface that uses signals instead of events. It also provides single-shot timers.

事件处理程序 QObject.timerEvent () receives timer 事件。


方法文档编制

QTimerEvent.__init__ ( self , int  timerId )

构造计时器事件对象,采用将计时器标识符设为 timerId .

QTimerEvent.__init__ ( self , QTimerEvent )

int QTimerEvent.timerId ( self )

Returns the unique timer identifier, which is the same identifier as returned from QObject.startTimer ().