Code examples - statemachine using Qt Quick and C++
-
Hi,
has anyone an idea where I could get code examples to use a statemachine wit Qt Quick and C++?
This video is exactly how I would like to use the statemachine: "Anatomy of real world apps - dissecting cross-platform apps written using Qt Quick and C++":http://qt-project.org/videos/watch/anatomy-of-real-world-apps-dissecting-cross-platform-apps-written-using-qt
"Here are the slides":http://www.slideshare.net/mariusbu/the-anatomy-of-real-world-apps
Thanks
-
Hi,
I'm also interesting in using statemachine with Qt Quick and c++. I only find an example here:
"Your text to link here...":http://lists.qt.nokia.com/pipermail/qt-qml/2010-November/001810.html
Hope it can help -
Thanks,
that's another interesting post I found: "blog.codeimproved.net":http://blog.codeimproved.net/2011/12/devdays-lessons-how-to-use-a-state-machine-to-drive-a-qml-ui/
An official example delivered by the Qt-Team would be great.
-
I realize this is an old thread but I never found a working code example. I worked through both of the links above and was able to get a C++ state machine working with QML for UI. I've added a sample project based on both links posted above:
"https://github.com/rchamberlin/QmlStateMachine":https://github.com/rchamberlin/QmlStateMachine
Hopefully it'll help someone in the future.
-
[quote author="andreyc" date="1404932898"]Thank you for the sample project.
I tried to build it and got the errors:
@
WARNING: Failure to find: qml.qrc
/home/achichinov/Qt5.3.1/5.3/gcc_64/bin/rcc: File does not exist 'qml.qrc'
@Do I need to create it or you missed it in your submit?[/quote]
Thanks. I forgot that it doesn't add those by default. I've added it to source control and it's out there now.