整體上,qml的數據類型分爲基本數據類型和對象類型,基本類型用於表示簡單的值,其中一部分由qml語言提供,另外一部分來自qml模塊。javascript
qml對象類型指類的實例,又分爲qml對象類型和javascript對象,qml引擎支持幾乎全部的javascript標準對象html
booljava |
Binary true/false valueide |
doubleurl |
Number with a decimal point, stored in double precisionspa |
enumeration.net |
Named enumeration valuescala |
int3d |
Whole number, e.g. 0, 10, or -20component |
List of QML objects |
|
Number with a decimal point |
|
Free form text string |
|
Resource locator |
|
Generic property type |
Date value |
|
Value with x and y attributes |
|
Value with x, y, width and height attributes |
|
Value with width and height attributes |
|
ARGB color value. The type refers to an ARGB color value. It can be specified in a number of ways: |
|
Font value with the properties of QFont. The type refers to a font value with the properties of QFont |
|
A matrix4x4 type is a 4-row and 4-column matrix |
|
A quaternion type has scalar, x, y, and z attributes |
|
A vector2d type has x and y attributes |
|
Value with x, y, and z attributes |
|
A vector4d type has x, y, z and w attributes |
Provides date functions |
|
Object provides represents a number value |
|
Object represents a string value |
|
Encapsulates a QML component definition |
|
Provides a global object with useful enums and functions from Qt |
|
A basic QML type |
|
Provides locale specific properties and formatted data |
|
Enables the arbitrary creation of property bindings |
|
Describes generalized connections to signals |
|
Dynamically creates objects |
|
Triggers a handler at a specified interval |