QScxmlCompiler Class

The QScxmlCompiler class is a compiler for SCXML files. More...

Header: #include <QScxmlCompiler>
qmake: QT += scxml
Since: Qt 5.7

This class was introduced in Qt 5.7.

Public Types

class Loader

Detailed Description

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 QScxmlStateMachine::parseErrors().

To load an SCXML file, QScxmlStateMachine::fromFile or QScxmlStateMachine::fromData should be used. Using QScxmlCompiler directly is only needed when the compiler needs to use a custom QScxmlCompiler::Loader.