Qt provides a powerful hierarchical finite state machine through the Qt State Machine classes.
These examples demonstrate the fundamental aspects of implementing Statecharts with Qt.