- class QStateMachine#
-
Synopsis#
Properties#
Methods#
def
__init__()
def
addState()
def
clearError()
def
configuration()
def
error()
def
errorString()
def
isAnimated()
def
isRunning()
def
postEvent()
def
removeState()
def
setAnimated()
Virtual methods#
def
beginMicrostep()
def
endMicrostep()
Slots#
def
setRunning()
def
start()
def
stop()
Signals#
def
runningChanged()
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 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:
parent –
QObject
- addDefaultAnimation(animation)#
- Parameters:
animation –
QAbstractAnimation
- addState(state)#
- Parameters:
state –
QAbstractState
- cancelDelayedEvent(id)#
- Parameters:
id – int
- Return type:
bool
- clearError()#
- configuration()#
- Return type:
.QSetQAbstractState
- errorString()#
- Return type:
str
Getter of property
errorStringᅟ
.- globalRestorePolicy()#
- Return type:
Getter of property
globalRestorePolicyᅟ
.- isAnimated()#
- Return type:
bool
Getter of property
animatedᅟ
.- isRunning()#
- Return type:
bool
Getter of property
runningᅟ
.- postEvent(event[, priority=QStateMachine.EventPriority.NormalPriority])#
- Parameters:
event –
QEvent
priority –
EventPriority
- removeDefaultAnimation(animation)#
- Parameters:
animation –
QAbstractAnimation
- removeState(state)#
- Parameters:
state –
QAbstractState
- runningChanged(running)#
- Parameters:
running – bool
Notification signal of property
runningᅟ
.- setAnimated(enabled)#
- Parameters:
enabled – bool
Setter of property
animatedᅟ
.- setGlobalRestorePolicy(restorePolicy)#
- Parameters:
restorePolicy –
RestorePolicy
Setter of property
globalRestorePolicyᅟ
.- setRunning(running)#
- Parameters:
running – bool
Setter of property
runningᅟ
.- start()#
- started()#
- stop()#
- stopped()#