内容表

上一话题

QTimer

下一话题

QTranslator

QTimerEvent

QTimerEvent class contains parameters that describe a timer event. 更多

Inheritance diagram of PySide2.QtCore.QTimerEvent

概要

函数

详细描述

计时器事件被定期发送给已启动一个或多个计时器的对象。每个计时器拥有唯一标识符。启动计时器采用 startTimer() .

QTimer 类提供使用信号而不是事件的高级编程接口。它还提供单发计时器。

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

class QTimerEvent ( timerId )
param timerId

int

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

PySide2.QtCore.QTimerEvent. timerId ( )
返回类型

int

返回唯一计时器标识符,其是相同标识符作为返回来自 startTimer() .