Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QStateMachine manually setting a state
frankiefrank last edited by
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.