[Qt-interest] Qt State machine framework
Kent Hansen
khansen at trolltech.com
Thu Mar 25 12:23:06 CET 2010
Hi Sean,
Sean Harmer wrote:
> Hi Kent,
>
> On Thursday 25 March 2010 10:08:31 Kent Hansen wrote:
>
>> Would it help if QStateMachine had a configurationChanged() signal? That
>> way you would have a central place to monitor state changes, and could
>> record the configuration at each step if desired (a "trace" of the
>> machine execution).
>>
>
> In principal yes, this would be useful. Would you envisage emitting this at
> the end of a complete SM step or after each micro-step?
>
> Cheers,
>
> Sean
>
After each micro-step. configurationChanged() would not be the right
name, then, since it's possible that a step is taken without the
configuration actually changing. Another possibility would be to emit
signals for exitStates() and enterStates(), should that be more directly
useable.
I've created http://bugreports.qt.nokia.com/browse/QTBUG-9380 for this,
feel free to comment / vote / add use-cases (that goes for you too of
course, Mandeep :-) ).
Kent
More information about the Qt-interest-old
mailing list