QStateMachine first attempt