State Machine Classes

How to create and execute state graphs.

These Qt Core classes are part of the :ref:` State Machine Framework<The-State-Machine-Framework>` .

PySide2.QtCore.QAbstractState

The QAbstractState class is the base class of states of a QStateMachine.

PySide2.QtCore.QAbstractTransition

The QAbstractTransition class is the base class of transitions between QAbstractState objects.

PySide2.QtCore.QEventTransition

The QEventTransition class provides a QObject-specific transition for Qt events.

PySide2.QtCore.QFinalState

The QFinalState class provides a final state.

PySide2.QtCore.QHistoryState

The QHistoryState class provides a means of returning to a previously active substate.

PySide2.QtCore.QSignalTransition

The QSignalTransition class provides a transition based on a Qt signal.

PySide2.QtCore.QState

The QState class provides a general-purpose state for QStateMachine.

PySide2.QtCore.QStateMachine

The QStateMachine class provides a hierarchical finite state machine.

QStateMachine.SignalEvent

The SignalEvent class represents a Qt signal event.

QStateMachine.WrappedEvent

The WrappedEvent class inherits QEvent and holds a clone of an event associated with a QObject.

The QBasicKeyEventTransition class provides a transition for Qt key events.

The QBasicMouseEventTransition class provides a transition for Qt mouse events.

PySide2.QtWidgets.QKeyEventTransition

The QKeyEventTransition class provides a transition for key events.

PySide2.QtWidgets.QMouseEventTransition

The QMouseEventTransition class provides a transition for mouse events.