QScxmlDataModel

The QScxmlDataModel class is the data model base class for a Qt SCXML state machine. More

Inheritance diagram of PySide6.QtScxml.QScxmlDataModel

Inherited by: QScxmlNullDataModel, QScxmlCppDataModel

New in version 5.12.

Synopsis

Functions

Virtual functions

Static functions

Detailed Description

SCXML data models are described in SCXML Specification - 5 Data Model and Data Manipulation . For more information about supported data models, see SCXML Compliance .

One data model can only belong to one state machine.

class PySide6.QtScxml.QScxmlDataModel([parent=None])
Parameters

parentPySide6.QtCore.QObject

Creates a new data model, with the parent object parent.

static PySide6.QtScxml.QScxmlDataModel.createScxmlDataModel(pluginKey)
Parameters

pluginKey – str

Return type

PySide6.QtScxml.QScxmlDataModel

Creates a data model from a plugin specified by a pluginKey.

PySide6.QtScxml.QScxmlDataModel.evaluateAssignment(id, ok)
Parameters
  • id – int

  • ok – bool

PySide6.QtScxml.QScxmlDataModel.evaluateForeach(id, ok, body)
Parameters
PySide6.QtScxml.QScxmlDataModel.evaluateInitialization(id, ok)
Parameters
  • id – int

  • ok – bool

PySide6.QtScxml.QScxmlDataModel.evaluateToBool(id)
Parameters

id – int

Return type

bool

PySide6.QtScxml.QScxmlDataModel.evaluateToString(id)
Parameters

id – int

Return type

str

PySide6.QtScxml.QScxmlDataModel.evaluateToVariant(id)
Parameters

id – int

Return type

object

PySide6.QtScxml.QScxmlDataModel.evaluateToVoid(id, ok)
Parameters
  • id – int

  • ok – bool

PySide6.QtScxml.QScxmlDataModel.hasScxmlProperty(name)
Parameters

name – str

Return type

bool

PySide6.QtScxml.QScxmlDataModel.scxmlProperty(name)
Parameters

name – str

Return type

object

PySide6.QtScxml.QScxmlDataModel.setScxmlEvent(event)
Parameters

eventPySide6.QtScxml.QScxmlEvent

PySide6.QtScxml.QScxmlDataModel.setScxmlProperty(name, value, context)
Parameters
  • name – str

  • value – object

  • context – str

Return type

bool

PySide6.QtScxml.QScxmlDataModel.setStateMachine(stateMachine)
Parameters

stateMachinePySide6.QtScxml.QScxmlStateMachine

Sets the state machine this model belongs to to stateMachine. There is a 1:1 relation between state machines and models. After setting the state machine once you cannot change it anymore. Any further attempts to set the state machine using this method will be ignored.

See also

stateMachine()

PySide6.QtScxml.QScxmlDataModel.setup(initialDataValues)
Parameters

initialDataValues

Return type

bool

PySide6.QtScxml.QScxmlDataModel.stateMachine()
Return type

PySide6.QtScxml.QScxmlStateMachine

Returns the state machine associated with the data model.

PySide6.QtScxml.QScxmlDataModel.stateMachineChanged(stateMachine)
Parameters

stateMachinePySide6.QtScxml.QScxmlStateMachine