[Qt-interest] QStateMachine: Jumping to a specific state
Mandeep Sandhu
mandeepsandhu.chd at gmail.com
Fri Apr 9 11:27:17 CEST 2010
On Fri, Apr 9, 2010 at 2:31 PM, Paul Drummond <paul.drummond at iode.co.uk> wrote:
> Hi,
>
> Is there a way to jump to a specific state in Qt?
If you want to jump to a state, you can attach a transition to the
source state (based on an event or any other condition) and keep the
target as "newState".
Will that work for you?
-mandeep
>
> In QML I can do this easily because states have identity and I can just say
> state = "newState". How does that map to Qt/C++?
>
> Regards,
> Paul Drummond
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
More information about the Qt-interest-old
mailing list