Qt Quick QML Types | Qt Quick 5.15.19 (original) (raw)
The Qt Quick module provides graphical primitive types. These types are only available in a QML document if that document imports the QtQuick
namespace.
The current version of the QtQuick
module is version 15, and thus it may be imported via the following statement:
Visit the Qt Quick module documentation for more information about the concepts which are central to QtQuick
.
Submodules
Qt Quick includes several submodules which contain additional types.
- Xml List Model - contains types for creating models from XML data
- Local Storage - a submodule containing a JavaScript interface for an SQLite database
- Particles - provides a particle system for QML applications
- Window - contains types for creating top-level windows and accessing screen information
- Dialogs - contains types for creating and interacting with system dialogs
- Controls - provides a set of reusable UI components
- Layouts - contains types that are used to arrange items in the user interface
- Tests - types for testing QML applications.
Basic Types
There are a number of basic types that are supported by default in the QML language.
In addition, the QtQuick
import provides the following basic types:
color | ARGB color value. The color type refers to an ARGB color value. It can be specified in a number of ways: |
---|---|
font | Font value with the properties of QFont. The font type refers to a font value with the properties of QFont |
matrix4x4 | A matrix4x4 type is a 4-row and 4-column matrix |
quaternion | A quaternion type has scalar, x, y, and z attributes |
vector2d | A vector2d type has x and y attributes |
vector3d | Value with x, y, and z attributes |
vector4d | A vector4d type has x, y, z and w attributes |
Object Types
Most object types provided by the QtQuick
import are based on the Item type, which itself derives from QtObject. QML object types provided by the Qt QML module (such as QtObject and Component) are also available when you import QtQuick
.