Qt QML QML Types
The Qt QML 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 QtObject and Component object types are non-visual and provide building-blocks for extensions to QML.
The types provided by the
QtQml module are only available in a QML document if that document imports the
QtQml namespace (or if the document imports the
QtQuick namespace, as noted below).
To use the module, import the
QtQml module with the following statement:
Most clients will never need to use the
QtQml import, as all of the types are also provided by the
QtQuick namespace which may be imported as follows:
See the Qt Quick module documentation for more information about the
QtQuick namespace and what it provides to QML application developers.
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.
The following QML Value Types are provided:
Value with x and y attributes
Value with x, y, width and height attributes
Value with width and height attributes
The following QML object types are provided:
Enables the arbitrary creation of property bindings
Encapsulates a QML component definition
Describes generalized connections to signals
Provides date functions
Provides locale specific properties and formatted data
Defines a logging category in QML
Object provides represents a number value
Provides a global object with useful enums and functions from Qt
A basic QML type
Object represents a string value
Triggers a handler at a specified interval
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. 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.