I see that someone else has asked this question, and the answer was to listen for entered() signals from the states.
Of course that works, but doesn't that seem kind of redundant?
If I have N states I need to write N slots like this:

Qt Code:
  1. void onMyState1Entered() {
  2. m_currentState = myState1
  3. }
To copy to clipboard, switch view to plain text mode 

That makes it very cumbersome to use large state machines. Seems like this should really be a feature of QStateMachine, no?