[Interest] QStateMachine as C++ (or Python) backbone of QML app

Elvis Stansvik elvstone at gmail.com
Sat May 7 22:51:03 CEST 2016


2016-05-07 22:12 GMT+02:00 Elvis Stansvik <elvstone at gmail.com>:
> 2016-05-07 21:39 GMT+02:00 Elvis Stansvik <elvstone at gmail.com>:
>> Hi all,
>>
>> Back in 2010 there were a couple of interesting threads on this list
>> regarding the use of state machines:
>>
>>     http://comments.gmane.org/gmane.comp.lib.qt.general/29861
>>     http://comments.gmane.org/gmane.comp.lib.qt.general/36760
>>
>> In the second one, which was about using a C++ QStateMachine based
>> design for the backend logic, and making it available to QML, Sean
>> Harmer describes his approach in a very good post.
>
> To clarify, I'm talking about this answer:
>
>     http://permalink.gmane.org/gmane.comp.lib.qt.general/36869
>

I took the liberty of converting your trafficlight example from that
post to Quick 2 (attached).

Elvis

> Elvis
>
>>
>> Sean, you mentioned back in that thread that you would polish up what
>> you had written and put it up on the Nokia blog (or the wiki?). Do you
>> remember if you ever got around to this, and if so, if that material
>> was lost when Nokia sold Qt? (or if Sean is not here, does anyone else
>> know?).
>>
>> I'm very much interested in real-world examples/stories of using a
>> state machine-based C++ (or Python) backend for the logic, and QML for
>> the UI, especially embedded/hardware control use cases.
>>
>> Cheers,
>> Elvis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trafficlight-quick2.tar.gz
Type: application/x-gzip
Size: 3760 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160507/65df5064/attachment.bin>


More information about the Interest mailing list