Thursday 15 May 2014

qt - Ownnership of QState. Do I need to delete all QStates? -


I added my status to MI, will this code delete the Mestrate?

  QStateMachine * m = new QStateMachine (); QState * mystate = new QState (); M-> AddState (mystate); Erase;  

This is similar to layout
if you add state and state ownership If you issue the state machine will take ownership, when you manually remove the state from the state machine.

Zero QStateMachine :: removalState (QAbstractState * state)
This state removes the state given from the machine. State machine releases state ownership.


No comments:

Post a Comment