W3cubDocs

/Qt 5.11

Qt SCXML

The Qt SCXML module provides functionality to create state machines from SCXML files. This includes both dynamically creating state machines (loading the SCXML file and instantiating states and transitions) and generating a C++ file that has a class implementing the state machine. It also contains functionality to support data models and executable content.

Getting Started

To include the definitions of the module's classes, use the following directive:

#include <QScxmlStateMachine>

To import the QML types into your application, use the following import statement in your .qml file:

import QtScxml 5.8

To link against the module, add this line to your qmake .pro file:

QT += scxml

Articles and Guides

Examples

Reference

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5/qtscxml-index.html