[Next: QML Advanced Tutorial 1 - Creating the Game Canvas and Blocks]
This tutorial walks step-by-step through the creation of a full application using QML. It assumes that you already know the basics of QML (for example, from reading the simple tutorial).
In this tutorial we write a game, Same Game, based on the Same Game application included in the declarative demos directory, which looks like this:
We will cover concepts for producing a fully functioning application, including JavaScript integration, using QML States and Behaviors to manage components and enhance your interface, and storing persistent application data.
An understanding of JavaScript is helpful to understand parts of this tutorial, but if you don't know JavaScript you can still get a feel for how you can integrate backend logic to create and control QML elements.
Tutorial chapters:
All the code in this tutorial can be found in Qt's examples/declarative/tutorials/samegame directory.
[Next: QML Advanced Tutorial 1 - Creating the Game Canvas and Blocks]
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.