内容表

上一话题

Qt

下一话题

QAbstractEventDispatcher.TimerInfo

QStateMachine.SignalEvent

SignalEvent class represents a Qt signal event. 更多

Inheritance diagram of PySide2.QtCore.QStateMachine.SignalEvent

4.6 版新增。

概要

函数

详细描述

A signal event is generated by a QStateMachine in response to a Qt signal. The QSignalTransition class provides a transition associated with a signal event. SignalEvent is part of 状态机框架 .

sender() function returns the object that generated the signal. The signalIndex() function returns the index of the signal. The arguments() function returns the arguments of the signal.

另请参阅

QSignalTransition

class PySide2.QtCore.QStateMachine. SignalEvent ( sender , signalIndex , arguments )

PySide2.QtCore.QStateMachine.SignalEvent(SignalEvent)

param arguments

param sender

QObject

param SignalEvent

SignalEvent

param signalIndex

int

构造新 SignalEvent 对象采用给定 sender , signalIndex and arguments .

PySide2.QtCore.QStateMachine.SignalEvent. arguments ( )
返回类型

Returns the arguments of the signal.

PySide2.QtCore.QStateMachine.SignalEvent. sender ( )
返回类型

QObject

Returns the object that emitted the signal.

另请参阅

sender()

PySide2.QtCore.QStateMachine.SignalEvent. signalIndex ( )
返回类型

int

Returns the index of the signal.