[Qt-interest] QT SM framework: Ignoring inherited transition w/o causing state transition
Mandeep Sandhu
mandeepsandhu.chd at gmail.com
Fri Mar 26 14:18:29 CET 2010
Hi all,
I was going through the Qt docs on how to make a child state ignore an
event which is valid for its parent state
(http://doc.qt.nokia.com/4.6/statemachine-api.html#sharing-transitions-by-grouping-states).
The way it's shown is that the child state which wants to ignore the
event, catches it and simply transitions to itself. This works fine,
but with a side-effect. It causes the SM to leave the state and enter
back in. Since I'm using custom states, I do some processing in the
onEntry/onExit callbacks, they get called even though logically, no
transition based processing should happen.
Is there a way to "stay" in the same state and not move out and come
back in? Since I really want to remain in the same state.
Thanks,
-mandeep
More information about the Qt-interest-old
mailing list