Let's say that my QStateMachine have a structure depicted below:
Note: actionsHistory is QHistoryState with initializeActions set as default state.
The transitions flow go 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 never goes to initializeActions state, instead it jumps straight to doActions. It means that history of QHistoryState is not cleared on machine restart. Is it a correct behavior or a bug?
I've reported it as a bug, it should be fixed in Qt 4.6.3