Qt SCXML Examples

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

There are multiple versions of the Invoke, Media Player, and Traffic Light example applications. Each application has some common files that are stored in a common folder, in addition to the files stored in the example version folder.

All versions of an example application have the same appearance and fuctionality. 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).

In addition, the Media Player example versions demonstrate how to access the C++ and ECMAScript data models.

Qt SCXML Calculator Example

A widget-based application that implements the Calculator example presented in the SCXML Specification.

Qt SCXML Calculator QML Example

A Qt Quick application that implements the Calculator example presented in the SCXML Specification.

Qt SCXML FTP Client Example

Implements a simple FTP client using a state machine.

Qt SCXML Invoke Example (Dynamic)

Invokes a dynamically loaded nested state machine.

Qt SCXML Invoke Example (Static)

Invokes a compiled nested state machine.

Qt SCXML Media Player Example (Dynamic)

A widget-based application that sends data to and receives it from a dynamically loaded ECMAScript data model.

Qt SCXML Media Player Example (Static)

A widget-based application that sends data to and receives it from a compiled ECMAScript data model.

Qt SCXML Media Player QML Example (C++ Data Model)

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

Qt SCXML Media Player QML Example (Dynamic)

A Qt Quick application that sends data to and receives it from a dynamically loaded ECMAScript data model.

Qt SCXML Media Player QML Example (Static)

A Qt Quick application that sends data to and receives it from a compiled ECMAScript data model.

Qt SCXML Pinball Example

Encapsulates the internal logic of an application in an SCXML file.

Qt SCXML Sudoku Example

Presents the use of SCXML in a sudoku game.

Qt SCXML Traffic Light Example (Dynamic)

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

Qt SCXML Traffic Light Example (Static)

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

Qt SCXML Traffic Light QML Example (Dynamic)

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

Qt SCXML Traffic Light QML Example (Simple)

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

Qt SCXML Traffic Light QML Example (Static)

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

© 2022 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.