Qt State Machine Reference Documentation

Animated Tiles Example

The main() Function

Changes to Qt State Machine

Changes

QSignalTransition

Build system

QML imports

Event Transitions Example

Factorial States Example

FinalState

Example Usage

HistoryState

Example Usage

Move Blocks Example

The main() Function

The createGeometryState() Function

The StateSwitcher Class

The StateSwitchTransition Class

The StateSwitchEvent Class

The QGraphicsRectWidget Class

Moving On

Pad Navigator Example

RoundRectItem Class Definition

FlippablePad Class Definition

SplashItem Class Definition

PadNavigator Class Definition

The main() Function

Performance Notes

Ping Pong States Example

QAbstractState

QAbstractTransition

QSignalTransition

Qt State Machine

Using the Module

QML API

C++ API

Building with CMake

Building with qmake

Articles and Guides

Examples

Reference

Module Evolution

Licenses and Trademarks

Qt State Machine C++ Guide

C++ Classes in the State Machine Framework

A Simple State Machine

Doing Useful Work on State Entry and Exit

State Machines That Finish

Sharing Transitions By Grouping States

Using History States to Save and Restore the Current State

Using Parallel States to Avoid a Combinatorial Explosion of States

Detecting that a Composite State has Finished

Targetless Transitions

Events, Transitions and Guards

Using Restore Policy To Automatically Restore Properties

Animations and States Machines

Detecting That All Properties Have Been Set In A State

What Happens If A State Is Exited Before The Animation Has Finished

Default Animations

Nesting State Machines

Qt State Machine Overview

Qt State Machine QML Guide

Using Both QtQuick and QtQml.StateMachine Imports

A Simple State Machine

State Machines That Finish

Sharing Transitions

Using History States

Using Parallel States

Exiting a Composite State

Targetless Transitions

Related Information

Rogue Example

Window Class Definition

Window Class Implementation

The MovementTransition Class

The Roguelike Tradition

States Example

The main() Function

Stickman Example

Sub-Attaq

The main() Function

The MainWindow Class

The GraphicsScene Class

The GraphicsScene Constructor

The setupScene Method

The PlayState Class

The LevelState Class

Traffic Light Example

Two-way Button Example

SignalTransition

Example Usage

State

States with Child States

Example Usage

StateMachine

Example Usage

TimeoutTransition

Example Usage

Qt State Machine Examples

Qt State Machine C++ Classes

Qt State Machine QML Types