Qt SCXML 範例

Qt SCXML 範例應用程序演示功能提供通過 Qt SCXML 模塊。

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 客戶端

使用狀態機實現簡單 FTP 客戶端。

SCXML Invoke

援引編譯嵌套狀態機。

SCXML Media Player

發送數據到 C++ 數據模型和接收數據從 C++ 數據模型。

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.