Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.2
-
None
-
c1e23f855826942d7d3821a944c35272d9ecffb4
Description
Let's say that my QStateMachine have a structure depicted by the machine.gif image in the attachment. The transitions flow inside this machine goes like this:
- actions
- actionsHistory
- initializeActions (default state for actionsHistory)
- doActions
- interrupt (after QEvent::User)
- actions
- actionsHistory
- doActions (was an active state last time the actions were exited).
If I stop the machine and start it again, the transitions are different: machine doesn't go to initializeActions state, it jumps straight to doActions instead. It means that history of QHistoryState is not cleared on machine restart. I expected the QStateMachine::start() method to completely reset configuration of state machine, ensuring that given set of input generates the same transition flow every time the machine is run.
I've attached the test case that reproduces the issue.