SignalEvent

The SignalEvent class represents a Qt signal event. More

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.SignalEvent(sender, signalIndex, arguments)

PySide2.QtCore.SignalEvent(SignalEvent)

param arguments

param sender

PySide2.QtCore.QObject

param SignalEvent

PySide2.QtCore.SignalEvent

param signalIndex

int

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

PySide2.QtCore.SignalEvent.arguments()
Return type

Returns the arguments of the signal.

PySide2.QtCore.SignalEvent.sender()
Return type

PySide2.QtCore.QObject

Returns the object that emitted the signal.

See also

sender()

PySide2.QtCore.SignalEvent.signalIndex()
Return type

int

Returns the index of the signal.