[Qt-interest] Finding out which Parallel state a SM is in

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Thu Jun 17 07:38:54 CEST 2010


Hi All,

Is there a way, for a "sibling" state, to find out what parallel state
it's other sibling is in?

I'll take this example
(http://doc.trolltech.com/4.6/statemachine-api.html#using-parallel-states-to-avoid-a-combinatorial-explosion-of-states):

* If s11 is in the "clean" child state, can I find out what child
state is s12 in (whether "moving" or "not moving")?
* Can I use QStateMachine::configuration()? I suspect this will give a
list of top-level states (not the final child state that I'm
interested in)?

Thanks,
-mandeep



More information about the Qt-interest-old mailing list