QML types in Qt Quick Ultralite
The following topics define how QML types are supported in Qt Quick Ultralite. Qt Quick Ultralite does not support functions, object methods, and properties that are typically available in QML but are not mentioned in this topic.
Qt Quick Ultralite supports only a subset of the QML basic types. The following basic types are supported:
double are both mapped to a float type in the generated C++ code.
In later Qt Quick Ultralite releases, the QML basic types are planned to be supported as follows:
|A QML basic type||Support status|
|var||Currently supported only in script expressions. Using |
The Qt QML type is supported in Qt Quick Ultralite as follows:
Qul object type is available only in the Qt Quick Ultralite implementation. For detailed information, see Qt Quick Ultralite C++ Classes.
Qul object has the following methods:
The argument in
Qul.color is something that can be converted to an image or a color at compile time.
These methods are wrappers that help the code generator to deduce types. For example, you can use them as follows:
source: Qul.image("images/setup.png") color: Qul.color("#90989D")
completed() signal is supported in Qt Quick Ultralite. Otherwise, the Component QML type is not supported.
The QtObject QML type is a pure container that does not provide any methods or properties.
The whole Timer QML type API except
triggeredOnStart() is supported.
Only static models are supported in Qt Quick Ultralite but you can define dynamic models in C++. In later Qt Quick Ultralite releases, dynamically changeable properties may also be provided.
Current limitations with referencing objects from other files:
- You can define a visual delegate object inline but you cannot define it in an other file.
- You cannot use
ListModelas a model if the ListModel object is declared in some other file.
To access data from a model, you need to use the modelData prefix.
The ListModel QML type is a readonly list of elements. Qt Quick Ultralite supports the following methods:
Available under certain Qt licenses.
Find out more.