The Qt Quick Ultralite module provides graphical primitive types. These types are only available in a QML document if that document imports the
QtQuick
名称空间。
To use the QtQuick QML types, link your application to the
Qul::QuickUltralite
CMake target:
target_link_libraries(app Qul::QuickUltralite Qul::QuickUltralitePlatform)
And add the following import statement to your
.qml
文件:
import QtQuick 2.15
For information about QML applications in general, see the Qt documentation on QML 应用程序 和 QML 参考 .
Since version 1.3, the QtQuick module offered by Qt Quick Ultralite is source-compatible with Qt's QtQuick module.
Qt Quick Ultralite has submodules that offer additional types.
There are a number of basic types that are supported by default in the QML language .
此外,
QtQuick
import provides the following basic types:
ARGB color value |
In later Qt Quick Ultralite releases, the QML basic types are planned to be supported as follows:
A QML basic type | 支持状态 |
---|---|
var | Currently supported only in script expressions. |
list | 不支持 |
url | 不支持 |
指定如何按状态改变项锚点 |
|
所有 QML 动画的基 |
|
Defines a default animation for a property change |
|
基于图像描绘边框 |
|
Animates changes in color values |
|
Positions its children in a column |
|
封装 QML 组件定义 |
|
Enables connecting a QML signal to a handler |
|
Provides a surface that can be "flicked" |
|
显示图像 |
|
A basic visual QML type |
|
Provides information about a key event |
|
Provides key handling to Items |
|
定义 ListModel 数据项 |
|
定义自由形式列表数据源 |
|
Provides a list view of items provided by a model |
|
Provides a 4x4 matrix to transform an Item |
|
Enables simple touch handling |
|
Provides information about a touch event |
|
Animates changes in qreal-type values |
|
Enables animations to be run in parallel |
|
Provides a pause for an animation |
|
Animates changes in property values |
|
描述状态的新特性绑定或值 |
|
提供带有有用 Qt 枚举和函数的全局对象 |
|
基本 QML 类型 |
|
Holds information about application performance |
|
Paints a filled rectangle with optionally rounded corners |
|
Instantiates a number of Item-based components using a provided model |
|
Provides a way to rotate an item |
|
Animates changes in rotation values |
|
Positions its children in a row |
|
Provides a way to scale an item |
|
Defines scripts to be run during an animation |
|
Allows animations to be run sequentially |
|
定义对象和特性的配置 |
|
Specifies how to add text to a scene |
|
按指定间隔触发处理程序 |
|
For specifying advanced transformations on Image, Text, and StaticText |
|
Defines animated transitions that occur on state changes |
|
Provides a way to move an item without changing its x or y properties |