Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-updates > by-pkgid > 6e2327ca1c896c6d674ae53117299f21 > files > 247

qtdeclarative5-doc-5.12.6-1.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qmltypereference.qdoc -->
  <title>Qt QML QML Types | Qt QML 5.12.6</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.12</td><td ><a href="qtqml-index.html">Qt QML</a></td><td >Qt QML QML Types</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtqml-index.html">Qt 5.12.6 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#importing-qtqml">Importing QtQml</a></li>
<li class="level1"><a href="#basic-types">Basic Types</a></li>
<li class="level1"><a href="#object-types">Object Types</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Qt QML QML Types</h1>
<span class="subtitle"></span>
<!-- $$$QtQml-description -->
<div class="descr"> <a name="details"></a>
<p>The <a href="qtqml-index.html">Qt QML</a> module provides the definition and implementation of various convenience types which can be used with the QML language, including some elementary QML types which can provide the basis for further extensions to the QML language. The <a href="qml-qtqml-qtobject.html">QtObject</a> and <a href="qml-qtqml-component.html">Component</a> object types are non-visual and provide building-blocks for extensions to QML.</p>
<a name="importing-qtqml"></a>
<h2 id="importing-qtqml">Importing QtQml</h2>
<p>The types provided by the <code>QtQml</code> module are only available in a QML document if that document imports the <code>QtQml</code> namespace (or if the document imports the <code>QtQuick</code> namespace, as noted below).</p>
<p>The current version of the <code>QtQml</code> module is version 2.12, and thus it may be imported via the following statement:</p>
<pre class="qml">



</pre>
<p>Most clients will never need to use the <code>QtQml</code> import, as all of the types are also provided by the <code>QtQuick</code> namespace which may be imported as follows:</p>
<pre class="qml">



</pre>
<p>See the Qt Quick module documentation for more information about the <code>QtQuick</code> namespace and what it provides to QML application developers.</p>
<p>The QML types for creating lists and models, such as <a href="qml-qtqml-models-listmodel.html">ListModel</a> and <a href="qml-qtqml-models-listelement.html">ListElement</a>, are moved to a submodule, <code>QtQml.Models</code>. The <a href="qtqml-models-qmlmodule.html">Qt QML Models</a> page has more information.</p>
<p>The documentation for the types below applies equally to the types of the same name provided by the Qt Quick module, as they are in fact identical.</p>
<a name="basic-types"></a>
<h2 id="basic-types">Basic Types</h2>
<p>The following <a href="qtqml-typesystem-basictypes.html">QML basic types</a> are provided:</p>
<div class="table"><table class="annotated">
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-date.html">date</a></p></td><td class="tblDescr"><p>Date value</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qml-point.html">point</a></p></td><td class="tblDescr"><p>Value with x and y attributes</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-rect.html">rect</a></p></td><td class="tblDescr"><p>Value with x, y, width and height attributes</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qml-size.html">size</a></p></td><td class="tblDescr"><p>Value with width and height attributes</p></td></tr>
</table></div>
<a name="object-types"></a>
<h2 id="object-types">Object Types</h2>
<p>The following <a href="qtqml-typesystem-objecttypes.html">QML object types</a> are provided:</p>
</div>
<!-- @@@QtQml -->
<div class="table"><table class="annotated">
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-qtqml-binding.html">Binding</a></p></td><td class="tblDescr"><p>Enables the arbitrary creation of property bindings</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qml-qtqml-component.html">Component</a></p></td><td class="tblDescr"><p>Encapsulates a QML component definition</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-qtqml-connections.html">Connections</a></p></td><td class="tblDescr"><p>Describes generalized connections to signals</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qml-qtqml-date.html">Date</a></p></td><td class="tblDescr"><p>Provides date functions</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-qtqml-instantiator.html">Instantiator</a></p></td><td class="tblDescr"><p>Dynamically creates objects</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qml-qtqml-locale.html">Locale</a></p></td><td class="tblDescr"><p>Provides locale specific properties and formatted data</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-qtqml-loggingcategory.html">LoggingCategory</a></p></td><td class="tblDescr"><p>Defines a logging category in QML</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qml-qtqml-number.html">Number</a></p></td><td class="tblDescr"><p>Object provides represents a number value</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-qtqml-qt.html">Qt</a></p></td><td class="tblDescr"><p>Provides a global object with useful enums and functions from Qt</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qml-qtqml-qtobject.html">QtObject</a></p></td><td class="tblDescr"><p>A basic QML type</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-qtqml-string.html">String</a></p></td><td class="tblDescr"><p>Object represents a string value</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qml-qtqml-timer.html">Timer</a></p></td><td class="tblDescr"><p>Triggers a handler at a specified interval</p></td></tr>
</table></div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 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>