Important: Please read the Qt Code of Conduct -

How to use onEnter() function inside the Qtstatemachine

  • Hi All,
    now I have a state machine that uses the onEnter() override member function. Its's called once. and my state should do the logic inside the onEnter() until a condition that happens then I transito to the next state using addtransition. How to make a state that self working until a condition happens.

  • Lifetime Qt Champion


    You don't do it like that. You create a custom transition that will do the work.

Log in to reply