How to use onEnter() function inside the Qtstatemachine
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.
You don't do it like that. You create a custom transition that will do the work.