<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qmlreference.qdoc --> <title>The QML Reference | Qt QML 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="qtqml-index.html">Qt QML</a></td><td >The QML Reference</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"> <div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">The QML Reference</h1> <span class="subtitle"></span> <!-- $$$qmlreference.html-description --> <div class="descr"> <a name="details"></a> <p>QML is a multi-paradigm language for creating highly dynamic applications. With QML, application building blocks such as UI components are <i>declared</i> and various properties set to define the application behavior. Application behavior can be further scripted through JavaScript, which is a subset of the language. In addition, QML heavily uses Qt, which allows types and other Qt features to be accessible directly from QML applications.</p> <p>This reference guide describes the features of the QML language. Many of the QML types in the guide originate from the <a href="qtqml-index.html">Qt QML</a> or Qt Quick modules.</p> <ul> <li><a href="qtqml-syntax-basics.html">QML Syntax Basics</a><ul> <li><a href="qtqml-syntax-imports.html">Import Statements</a></li> <li><a href="qtqml-syntax-basics.html#object-declarations">Object Declarations</a><ul> <li><a href="qtqml-syntax-basics.html#child-objects">Child Objects</a></li> </ul> </li> <li><a href="qtqml-syntax-basics.html#comments">Comments</a></li> </ul> </li> <li><a href="qtqml-syntax-objectattributes.html">QML Object Attributes</a><ul> <li><a href="qtqml-syntax-objectattributes.html#the-id-attribute">The <i>id</i> Attribute</a></li> <li><a href="qtqml-syntax-objectattributes.html#property-attributes">Property Attributes</a></li> <li><a href="qtqml-syntax-objectattributes.html#signal-attributes">Signal Attributes</a></li> <li><a href="qtqml-syntax-objectattributes.html#method-attributes">Method Attributes</a></li> <li><a href="qtqml-syntax-objectattributes.html#attached-properties-and-attached-signal-handlers">Attached Properties and Attached Signal Handlers</a></li> </ul> </li> <li><a href="qtqml-syntax-propertybinding.html">Property Binding</a></li> <li><a href="qtqml-syntax-signals.html">Signal and Handler Event System</a></li> <li><a href="qtqml-javascript-topic.html">Integrating QML and JavaScript</a><ul> <li><a href="qtqml-javascript-expressions.html">Using JavaScript Expressions with QML</a></li> <li><a href="qtqml-javascript-dynamicobjectcreation.html">Dynamic QML Object Creation from JavaScript</a></li> <li><a href="qtqml-javascript-resources.html">Defining JavaScript Resources In QML</a></li> <li><a href="qtqml-javascript-imports.html">Importing JavaScript Resources In QML</a></li> <li><a href="qtqml-javascript-hostenvironment.html">JavaScript Host Environment</a></li> </ul> </li> <li><a href="qtqml-typesystem-topic.html">The QML Type System</a><ul> <li><a href="qtqml-typesystem-basictypes.html">Basic Types</a></li> <li><a href="qtqml-typesystem-topic.html#javascript-types">JavaScript Types</a></li> <li><a href="qtqml-typesystem-objecttypes.html">QML Object Types</a><ul> <li><a href="qtqml-documents-definetypes.html">Defining Object Types from QML</a></li> <li><a href="qtqml-cppintegration-definetypes.html">Defining Object Types from C++</a></li> </ul> </li> </ul> </li> <li><a href="qtqml-modules-topic.html">QML Modules</a><ul> <li><a href="qtqml-modules-qmldir.html">Specifying A QML Module</a></li> <li><a href="qtqml-modules-topic.html#supported-qml-module-types">Supported QML Module Types</a><ul> <li><a href="qtqml-modules-identifiedmodules.html">Identified Modules</a></li> <li><a href="qtqml-modules-legacymodules.html">Legacy Modules</a></li> </ul> </li> <li><a href="qtqml-modules-cppplugins.html">Providing Types and Functionality in a C++ Plugin</a></li> </ul> </li> <li><a href="qtqml-documents-topic.html">QML Documents</a><ul> <li><a href="qtqml-documents-structure.html">Structure of a QML Document</a></li> <li><a href="qtqml-documents-topic.html#syntax-of-the-qml-language">Syntax of the QML Language</a></li> <li><a href="qtqml-documents-definetypes.html">Defining Object Types through QML Documents</a><ul> <li><a href="qtqml-documents-definetypes.html#defining-an-object-type-with-a-qml-file">Defining an Object Type with a QML File</a></li> <li><a href="qtqml-documents-definetypes.html#accessible-attributes-of-custom-types">Accessible Attributes of Custom Types</a></li> </ul> </li> <li><a href="qtqml-documents-networktransparency.html">Resource Loading and Network Transparency</a></li> <li><a href="qtqml-documents-scope.html">Scope and Naming Resolution</a></li> </ul> </li> </ul> </div> <!-- @@@qmlreference.html --> </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>