views:

14

answers:

0

Let's say that my QStateMachine have a structure depicted below:

alt text

Note: actionsHistory is QHistoryState with initializeActions set as default state.

The transitions flow go like this:

  1. actions
  2. actionsHistory
  3. initializeActions (default state for actionsHistory)
  4. doActions
  5. interrupt (after QEvent::User)
  6. actions
  7. actionsHistory
  8. 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