class QStateMachine

Inheritance diagram of PySide6.QtStateMachine.QStateMachine

Synopsis

Properties

Methods

Virtual methods

Slots

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 EventPriority
class Error

Note

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

property animatedᅟ: bool
Access functions:
property errorStringᅟ: str
Access functions:
property globalRestorePolicyᅟ: QState.RestorePolicy
Access functions:
property runningᅟ: bool
Access functions:
__init__([parent=None])
Parameters:

parentQObject

__init__(childMode[, parent=None])
Parameters:
addDefaultAnimation(animation)
Parameters:

animationQAbstractAnimation

addState(state)
Parameters:

stateQAbstractState

beginMicrostep(event)
Parameters:

eventQEvent

beginSelectTransitions(event)
Parameters:

eventQEvent

cancelDelayedEvent(id)
Parameters:

id – int

Return type:

bool

clearError()
configuration()
Return type:

.QSetQAbstractState

endMicrostep(event)
Parameters:

eventQEvent

endSelectTransitions(event)
Parameters:

eventQEvent

error()
Return type:

Error

errorString()
Return type:

str

Getter of property errorStringᅟ .

globalRestorePolicy()
Return type:

RestorePolicy

Getter of property globalRestorePolicyᅟ .

isAnimated()
Return type:

bool

Getter of property animatedᅟ .

isRunning()
Return type:

bool

Getter of property runningᅟ .

postDelayedEvent(event, delay)
Parameters:
  • eventQEvent

  • delay – int

Return type:

int

postEvent(event[, priority=QStateMachine.EventPriority.NormalPriority])
Parameters:
removeDefaultAnimation(animation)
Parameters:

animationQAbstractAnimation

removeState(state)
Parameters:

stateQAbstractState

runningChanged(running)
Parameters:

running – bool

Notification signal of property runningᅟ .

setAnimated(enabled)
Parameters:

enabled – bool

Setter of property animatedᅟ .

setGlobalRestorePolicy(restorePolicy)
Parameters:

restorePolicyRestorePolicy

Setter of property globalRestorePolicyᅟ .

setRunning(running)
Parameters:

running – bool

Setter of property runningᅟ .

start()
started()
stop()
stopped()