class QState

Inheritance diagram of PySide6.QtStateMachine.QState

Inherited by: QStateMachine

Synopsis

Properties

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 ChildMode
class RestorePolicy

Note

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

property childModeᅟ: QState.ChildMode
Access functions:
property errorStateᅟ: QAbstractState
Access functions:
property initialStateᅟ: QAbstractState
Access functions:
__init__([parent=None])
Parameters:

parentQState

__init__(childMode[, parent=None])
Parameters:
addTransition(target)
Parameters:

targetQAbstractState

Return type:

QAbstractTransition

addTransition(transition)
Parameters:

transitionQAbstractTransition

addTransition(arg__1, arg__2)
Parameters:
Return type:

QSignalTransition

addTransition(sender, signal, target)
Parameters:
Return type:

QSignalTransition

assignProperty(object, name, value)
Parameters:
  • objectQObject

  • name – str

  • value – object

childMode()
Return type:

ChildMode

Getter of property childModeᅟ .

childModeChanged()

Notification signal of property childModeᅟ .

errorState()
Return type:

QAbstractState

Getter of property errorStateᅟ .

errorStateChanged()

Notification signal of property errorStateᅟ .

finished()
initialState()
Return type:

QAbstractState

Getter of property initialStateᅟ .

initialStateChanged()

Notification signal of property initialStateᅟ .

propertiesAssigned()
removeTransition(transition)
Parameters:

transitionQAbstractTransition

setChildMode(mode)
Parameters:

modeChildMode

Setter of property childModeᅟ .

setErrorState(state)
Parameters:

stateQAbstractState

Setter of property errorStateᅟ .

setInitialState(state)
Parameters:

stateQAbstractState

Setter of property initialStateᅟ .

transitions()
Return type:

.list of QAbstractTransition