[Qt-interest] QStateMachine API and design?

Andre Somers andre at familiesomers.nl
Mon Nov 8 17:42:59 CET 2010


Op Ma, 8 november, 2010 5:22 pm, schreef Sean Harmer:
> Hi Steve,
>
> On Thursday 04 November 2010 14:03:22 Stephen Kelly wrote:
>> >> My usecase is to create a state machine and expose it to QML so that
>> I
>> >> can change the ui state on change of the application state.
>> >> Approximately:
>> >>
>> >> Item {
>> >>
>> >>   State {
>> >>
>> >>     when : application.state == "connecting"
>> >>     PropertyChanges { target : myText; text : "Please wait" }
>> >>
>> >>   }
>> >>
>> >> }
>> >>
>
> OK I have now had a chance to have a play around with exposing a C++ state
> machine such that it can be used to control a QML based GUI. I'll write it
> up
> as an entry on http://developer.qt.nokia.com/wiki too but here is a brief
> run
> down on how it works along with a tarball of my source code as it stands
> now.
>

Great post Sean! A very nice writeup, you should definately put it on the
wiki.

André





More information about the Qt-interest-old mailing list