QStateMachine#
Synopsis#
Properties#
Functions#
def
addDefaultAnimation
(animation)def
addState
(state)def
cancelDelayedEvent
(id)def
clearError
()def
configuration
()def
error
()def
errorString
()def
globalRestorePolicy
()def
isAnimated
()def
isRunning
()def
postDelayedEvent
(event, delay)def
postEvent
(event[, priority=QStateMachine.EventPriority.NormalPriority])def
removeDefaultAnimation
(animation)def
removeState
(state)def
setAnimated
(enabled)def
setGlobalRestorePolicy
(restorePolicy)
Virtual functions#
def
beginMicrostep
(event)def
beginSelectTransitions
(event)def
endMicrostep
(event)def
endSelectTransitions
(event)
Slots#
def
setRunning
(running)def
start
()def
stop
()
Signals#
def
runningChanged
(running)def
started
()def
stopped
()
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 PySide6.QtStateMachine.QStateMachine([parent=None])#
PySide6.QtStateMachine.QStateMachine(childMode[, parent=None])
- Parameters:
childMode –
ChildMode
parent –
PySide6.QtCore.QObject
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.QtStateMachine.QStateMachine.animated: bool#
- Access functions:
isAnimated
()setAnimated
(enabled)
- property PᅟySide6.QtStateMachine.QStateMachine.errorString: str#
- Access functions:
errorString
()
- property PᅟySide6.QtStateMachine.QStateMachine.globalRestorePolicy: RestorePolicy#
- Access functions:
setGlobalRestorePolicy
(restorePolicy)
- property PᅟySide6.QtStateMachine.QStateMachine.running: bool#
- Access functions:
isRunning
()setRunning
(running)Signal
runningChanged
(running)
- PySide6.QtStateMachine.QStateMachine.EventPriority#
- PySide6.QtStateMachine.QStateMachine.Error#
- PySide6.QtStateMachine.QStateMachine.addDefaultAnimation(animation)#
- Parameters:
animation –
PySide6.QtCore.QAbstractAnimation
- PySide6.QtStateMachine.QStateMachine.addState(state)#
- Parameters:
- PySide6.QtStateMachine.QStateMachine.beginMicrostep(event)#
- Parameters:
event –
PySide6.QtCore.QEvent
- PySide6.QtStateMachine.QStateMachine.beginSelectTransitions(event)#
- Parameters:
event –
PySide6.QtCore.QEvent
- PySide6.QtStateMachine.QStateMachine.cancelDelayedEvent(id)#
- Parameters:
id – int
- Return type:
bool
- PySide6.QtStateMachine.QStateMachine.clearError()#
- PySide6.QtStateMachine.QStateMachine.configuration()#
- Return type:
- PySide6.QtStateMachine.QStateMachine.endMicrostep(event)#
- Parameters:
event –
PySide6.QtCore.QEvent
- PySide6.QtStateMachine.QStateMachine.endSelectTransitions(event)#
- Parameters:
event –
PySide6.QtCore.QEvent
- PySide6.QtStateMachine.QStateMachine.errorString()#
- Return type:
str
Getter of property errorString
.
- PySide6.QtStateMachine.QStateMachine.globalRestorePolicy()#
- Return type:
Getter of property globalRestorePolicy
.
- PySide6.QtStateMachine.QStateMachine.isAnimated()#
- Return type:
bool
Getter of property animated
.
- PySide6.QtStateMachine.QStateMachine.isRunning()#
- Return type:
bool
Getter of property running
.
- PySide6.QtStateMachine.QStateMachine.postDelayedEvent(event, delay)#
- Parameters:
event –
PySide6.QtCore.QEvent
delay – int
- Return type:
int
- PySide6.QtStateMachine.QStateMachine.postEvent(event[, priority=QStateMachine.EventPriority.NormalPriority])#
- Parameters:
event –
PySide6.QtCore.QEvent
priority –
EventPriority
- PySide6.QtStateMachine.QStateMachine.removeDefaultAnimation(animation)#
- Parameters:
animation –
PySide6.QtCore.QAbstractAnimation
- PySide6.QtStateMachine.QStateMachine.removeState(state)#
- Parameters:
- PySide6.QtStateMachine.QStateMachine.runningChanged(running)#
- Parameters:
running – bool
Notification signal of property running
.
- PySide6.QtStateMachine.QStateMachine.setAnimated(enabled)#
- Parameters:
enabled – bool
Setter of property animated
.
- PySide6.QtStateMachine.QStateMachine.setGlobalRestorePolicy(restorePolicy)#
- Parameters:
restorePolicy –
RestorePolicy
Setter of property globalRestorePolicy
.
- PySide6.QtStateMachine.QStateMachine.setRunning(running)#
- Parameters:
running – bool
Setter of property running
.
- PySide6.QtStateMachine.QStateMachine.start()#
- PySide6.QtStateMachine.QStateMachine.started()#
- PySide6.QtStateMachine.QStateMachine.stop()#
- PySide6.QtStateMachine.QStateMachine.stopped()#