0

I have some problem with states aren't setting properties. Probably the problem is because I add the properties after the machine is started and I'm adding to the current state. But I need to add properties, states and transition when the machine is already running. Thank you.

Mohammad Kanan
  • 4,452
  • 10
  • 23
  • 47
Breezeight
  • 1,855
  • 2
  • 22
  • 27

1 Answers1

1

I've just understood the problem. Properties are set when you enter the state. I need to exit the state and than enter again. Transition and state can be added after QStateMachine starting.

With my application I can go to another state but I would like to know if there is a simple solution to exit and enter from the same state. I'll check if I can do that with QHistoryState.

Mohammad Kanan
  • 4,452
  • 10
  • 23
  • 47
Breezeight
  • 1,855
  • 2
  • 22
  • 27