Sample Qt project to show how to use a C++ state machine with QML for UI