<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- advtutorial.qdoc --> <title>QML Advanced Tutorial | Qt Quick 5.9</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td >Qt 5.9</td><td ><a href="qtquick-index.html">Qt Quick</a></td><td >QML Advanced Tutorial</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <link rel="next" href="qtquick-tutorials-samegame-samegame1-example.html" /> <p class="naviNextPrevious headerNavi"> <a class="nextPage" href="qtquick-tutorials-samegame-samegame1-example.html">QML Advanced Tutorial 1 - Creating the Game Canvas and Blocks</a> </p><p/> <div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">QML Advanced Tutorial</h1> <span class="subtitle"></span> <!-- $$$qml-advtutorial.html-description --> <div class="descr"> <a name="details"></a> <p>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 <a href="qml-tutorial.html">simple tutorial</a>).</p> <p>In this tutorial we write a game, <i>Same Game</i>, based on the Same Game application included in the declarative <code>examples</code> directory, which looks like this:</p> <p class="centerAlign"><img src="images/declarative-samegame.png" alt="" /></p><p>We will cover concepts for producing a fully functioning application, including JavaScript integration, using QML <a href="qml-qtquick-state.html">Qt Quick States</a> and <a href="qml-qtquick-behavior.html">Behaviors</a> to manage components and enhance your interface, and storing persistent application data.</p> <p>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 types.</p> <p>Tutorial chapters:</p> <ol class="1" type="1"><li><a href="qtquick-tutorials-samegame-samegame1-example.html">Creating the Game Canvas and Blocks</a></li> <li><a href="qtquick-tutorials-samegame-samegame2-example.html">Populating the Game Canvas</a></li> <li><a href="qtquick-tutorials-samegame-samegame3-example.html">Implementing the Game Logic</a></li> <li><a href="qtquick-tutorials-samegame-samegame4-example.html">Finishing Touches</a></li> </ol> <p>All the code in this tutorial can be found in Qt's <code>examples/quick/tutorials/samegame</code> directory.</p> </div> <!-- @@@qml-advtutorial.html --> <p class="naviNextPrevious footerNavi"> <a class="nextPage" href="qtquick-tutorials-samegame-samegame1-example.html">QML Advanced Tutorial 1 - Creating the Game Canvas and Blocks</a> </p> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>