QStateMachine.SignalEvent

The SignalEvent class represents a Qt signal event. More

Inheritance diagram of PySide2.QtCore.QStateMachine.SignalEvent

New in version 4.6.

Synopsis

Functions

Detailed Description

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 The State Machine Framework .

The 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.

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

PySide2.QtCore.QStateMachine.SignalEvent(SignalEvent)

param arguments

param sender

QObject

param SignalEvent

SignalEvent

param signalIndex

int

Constructs a new SignalEvent object with the given sender , signalIndex and arguments .

PySide2.QtCore.QStateMachine.SignalEvent.arguments()
Return type

Returns the arguments of the signal.

PySide2.QtCore.QStateMachine.SignalEvent.sender()
Return type

QObject

Returns the object that emitted the signal.

See also

sender()

PySide2.QtCore.QStateMachine.SignalEvent.signalIndex()
Return type

int

Returns the index of the signal.