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
Parses an SCXML file and dynamically instantiates a state machine for a successfully parsed SCXML file. If parsing fails, the new state machine cannot start. All errors are returned by
- class PySide6.QtScxml.QScxmlCompiler(xmlReader)#
Creates a new SCXML compiler for the specified
Parses an SCXML file and creates a new state machine from it.
If parsing is successful, the returned state machine can be initialized and started. If parsing fails,
parseErrors() can be used to retrieve a list of errors.
Returns the list of parse errors.
- Return type:
Returns the file name associated with the current input.
Returns the loader that is currently used to resolve and load URIs for the SCXML compiler.
fileName – str
Sets the file name for the current input to
The file name is used for error reporting and for resolving relative path URIs.
newLoader to be used for resolving and loading URIs for the SCXML compiler.