Qt SCXML Examples#

Examples for the Qt SCXML module.

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 (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 (Dynamic, Widgets)

A widget-based application that uses a dynamically loaded 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.