Qt SCXML Examples

The Qt SCXML example applications demonstrate the functionality provided by the Qt SCXML module.

There are multiple versions of the Traffic Light example application. The application has shared common files, and in addition specific files for each version of the application, under their respective folders. They demonstrate the different options for creating user interfaces (using Qt Widgets or Qt Quick) and for loading the SCXML dynamically versus first compiling it to a C++ class (the static versions).

SCXML Calculator

An application that implements the Calculator example presented in the SCXML Specification.

SCXML FTP Client

Implements a simple FTP client using a state machine.

SCXML Invoke

Invokes a compiled nested state machine.

SCXML Media Player

Sends data to and receives it from a C++ data model.

SCXML Sudoku

Demonstrates the use of separate javascript file with SCXML.

SCXML Traffic Light (Dynamic, QML)

A Qt Quick application that uses a dynamically loaded state machine to implement a traffic light.

SCXML Traffic Light (Dynamic, Widgets)

A widget-based application that uses a dynamically loaded state machine to implement a traffic light.

SCXML Traffic Light (Simple, QML)

A Qt Quick application that uses a compiled state machine to implement a simplified traffic light.

SCXML Traffic Light (Static, QML)

A Qt Quick application that uses a compiled state machine to implement a traffic light.

SCXML Traffic Light (Static, Widgets)

A widget-based application that uses a compiled state machine to implement a traffic light.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.