QStateMachine.SignalEvent Class Reference

[ QtCore module]

The SignalEvent class represents a Qt signal event. 更多...

继承 QEvent .

方法


详细描述

The SignalEvent class represents a Qt signal event.

A signal event is generated by a QStateMachine in response to a Qt signal. QSignalTransition class provides a transition associated with a signal event. QStateMachine.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.


方法文档编制

list-of-QVariant SignalEvent.arguments ( self )

Returns the arguments of the signal.

QObject SignalEvent.sender ( self )

Returns the object that emitted the signal.

另请参阅 QObject.sender ().

int SignalEvent.signalIndex ( self )

Returns the index of the signal.

另请参阅 QMetaObject.indexOfSignal () and QMetaObject.method ().