QStateMachine.SignalEvent

Inheritance diagram of PySide2.QtCore.QStateMachine.SignalEvent

Note

This class was introduced in Qt 4.6.

Synopsis

Functions

Detailed Description

The SignalEvent class represents a Qt signal event.

A signal event is generated by a PySide2.QtCore.QStateMachine in response to a Qt signal. The PySide2.QtCore.QSignalTransition class provides a transition associated with a signal event. QStateMachine.SignalEvent is part of The State Machine Framework .

The PySide2.QtCore.QStateMachine::SignalEvent.sender() function returns the object that generated the signal. The PySide2.QtCore.QStateMachine::SignalEvent.signalIndex() function returns the index of the signal. The PySide2.QtCore.QStateMachine::SignalEvent.arguments() function returns the arguments of the signal.

class PySide2.QtCore.QStateMachine.SignalEvent(sender, signalIndex, arguments)
class PySide2.QtCore.QStateMachine.SignalEvent(SignalEvent)
Parameters:
  • arguments
  • senderPySide2.QtCore.QObject
  • SignalEventPySide2.QtCore.QStateMachine::SignalEvent
  • signalIndexPySide2.QtCore.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:PySide2.QtCore.QObject

Returns the object that emitted the signal.

See also

QObject.sender()

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

Returns the index of the signal.