Qt SCXML Reference Documentation

Changes to Qt SCXML

Changes overview

API changes

QScxmlEcmaScriptDataModel API removal

Build system

QML imports

EventConnection

Instantiating State Machines

InvokedServices

Qt SCXML

Getting Started

Articles and Guides

Examples

Reference

Module Evolution

Licenses and Trademarks

Qt SCXML Calculator Example

Running the Example

Compiling the State Machine

.pro when using qmake:

CMakeLists.txt when using cmake:

Instantiating the State Machine

Connecting to Active Properties

Qt SCXML Calculator QML Example

Running the Example

Compiling the State Machine

.pro when using qmake:

CMakeLists.txt when using cmake:

Instantiating the State Machine

Qt SCXML FTP Client Example

Running the Example

Compiling the State Machine

Instantiating the State Machine

Communicating with an FTP Server

Qt SCXML Invoke Example (Dynamic)

Running the Example

Invoking the State Machine

Dynamically Loading the State Machine

Qt SCXML Invoke Example (Static)

Running the Example

Invoking the State Machine

Compiling the State Machine

invoke-static.pro when using qmake:

CMakeLists.txt when using cmake:

Instantiating the State Machine

Qt SCXML Media Player Example (Dynamic)

Running the Example

Using the ECMAScript Data Model

Dynamically Loading the State Machine

Connecting to States

Qt SCXML Media Player Example (Static)

Running the Example

Using the ECMAScript Data Model

Compiling the State Machine

.pro when using qmake:

CMakeLists.txt when using cmake:

Instantiating the State Machine

Connecting to States

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

Running the Example

Using the C++ Data Model

Qt SCXML Media Player QML Example (Dynamic)

Running the Example

Using the ECMAScript Data Model

Dynamically Loading the State Machine

Qt SCXML Media Player QML Example (Static)

Running the Example

Using the ECMAScript Data Model

Compiling the State Machine

.pro when using qmake:

CMakeLists.txt when using cmake:

Instantiating the State Machine

Qt SCXML Overview

Data Models

Qt SCXML Compiler

Logging Categories

Qt SCXML Pinball Example

Running the Example

Pinball Features

SCXML Part: Internal Logic Description

Maintaining Light State

Maintaining Game State

Maintaining Logical State of Buttons

Maintaining Game Modes

Game On

Generating Blinking Lights

GUI Part: User Interface Description

C++ Part: Glue GUI with SCXML

Qt SCXML Sudoku Example

Running the Example

Sudoku Features

SCXML Part: Internal Logic Description

C++ Part: Constructing the GUI

Qt SCXML Traffic Light Example (Dynamic)

Running the Example

Dynamically Loading the State Machine

Connecting to States

Qt SCXML Traffic Light Example (Static)

Running the Example

Compiling the State Machine

.pro when using qmake:

CMakeLists.txt when using cmake:

Instantiating the State Machine

Connecting to States

Qt SCXML Traffic Light QML Example (Dynamic)

Running the Example

Dynamically Loading the State Machine

Connecting to States

Qt SCXML Traffic Light QML Example (Simple)

Running the Example

Compiling the State Machine

.pro when using qmake:

CMakeLists.txt when using cmake:

Instantiating the State Machine

Connecting to States

Qt SCXML Traffic Light QML Example (Static)

Running the Example

Compiling the State Machine

.pro when using qmake:

CMakeLists.txt when using cmake:

Instantiating the State Machine

Connecting to States

RFC 959

SCXML Compliance

Supported Data Models

Supported Elements and Attributes

Qt SCXML Extensions

SCXML Specification

SCXML Specification - 5 Data Model and Data Manipulation

SCXML Specification - 5.10 System Variables

SCXML Specification - 5.10.1 The Internal Structure of Events

SCXML Specification - 6.4 <invoke>

SCXML Specification - B.1 The Null Data Model

SCXML Specification - B.2 The ECMAScript Data Model

SCXML Specification - Calculator Example

Using the Qt SCXML Compiler (qscxmlc)

Usage

Command-Line Options

qt_add_statecharts

qt6_add_statecharts

Description

Synopsis

ScxmlStateMachine

StateMachineLoader

Qt SCXML Examples

Qt SCXML C++ Classes

Qt SCXML QML Types