Important: Please read the Qt Code of Conduct -

QStateMachine manually setting a state

  • My use of QStateMachine is a bit different from what most of the documentation refer to, since I don't want to create transitions based on signals. I just want to be able to switch from state to state on my own, with a regular method call, and of course still trigger the relevant onExit() onEntry().

    What's the best way to do that?

    I see that someone asked this question on Qt-Centre:

    but the answer still involves working with the signals and transitions.

Log in to reply