class QAbstractTransition

Inheritance diagram of PySide6.QtStateMachine.QAbstractTransition

Inherited by: QSignalTransition, QEventTransition, QMouseEventTransition, QKeyEventTransition

Synopsis

Properties

Methods

Virtual methods

Signals

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

class TransitionType

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property sourceStateᅟ: QState
Access functions:
property targetStateᅟ: QAbstractState
Access functions:
property targetStatesᅟ: list of QAbstractState
Access functions:
property transitionTypeᅟ: QAbstractTransition.TransitionType
Access functions:
__init__([sourceState=None])
Parameters:

sourceStateQState

addAnimation(animation)
Parameters:

animationQAbstractAnimation

animations()
Return type:

.list of QAbstractAnimation

abstract eventTest(event)
Parameters:

eventQEvent

Return type:

bool

machine()
Return type:

QStateMachine

abstract onTransition(event)
Parameters:

eventQEvent

removeAnimation(animation)
Parameters:

animationQAbstractAnimation

setTargetState(target)
Parameters:

targetQAbstractState

Setter of property targetStateᅟ .

setTargetStates(targets)
Parameters:

targets – .list of QAbstractState

Setter of property targetStatesᅟ .

setTransitionType(type)
Parameters:

typeTransitionType

Setter of property transitionTypeᅟ .

sourceState()
Return type:

QState

Getter of property sourceStateᅟ .

targetState()
Return type:

QAbstractState

Getter of property targetStateᅟ .

targetStateChanged()

Notification signal of property targetStateᅟ .

targetStates()
Return type:

.list of QAbstractState

Getter of property targetStatesᅟ .

targetStatesChanged()

Notification signal of property targetStatesᅟ .

transitionType()
Return type:

TransitionType

Getter of property transitionTypeᅟ .

triggered()