how to use QStateMachine in such case

Printable View