通过运行Qt自带的例子,感觉界面确实漂亮,且开发方便,界面与业务分离,模型太爽了,还支持各个平台,而且允许速度也块,综上几种有点,目前还真没有一款C++开发环境能与其媲美。然而这QML很多类型,属性都不熟悉,无从下手,所以想系统的学习下,目前对部分内容做注释,后面学到了再更新。
Qt Quick包括几个其他类型的子模块。
XML List Model (XML列表模型) - 包含用于创建XML数据模型的类型
Local Storage (本地存储子模型) - 包含用于SQLite数据库接口
Particles (颗粒模型) - 提供了一个粒子系统
Window (窗体模型) - 包含用于创建顶级窗口和屏幕信息
Dialogs (对话框模型) - 包含用于创建系统对话框交互
Controls (控件模型) - 提供可重用的UI组件
Layouts (布局模型) - 包含用于安排在用户接口
Quick的基本类型
除了QML语言自带的数据类型外 Qt Quick 还有自己的数据类型
a date value. |
|
a value with x and y attributes. |
|
a value with x, y, width and height attributes. |
|
a value with width and height attributes |
|
an ARGB color value. The color type refers to an ARGB color value. It can be specified in a number of ways: |
|
a font value with the properties of QFont. The font type refers to a font value with the properties of QFont. |
|
A vector2d type has x and y attributes. |
|
a value with x, y, and z attributes. |
|
A vector4d type has x, y, z and w attributes.(四维) |
|
A quaternion type has scalar, x, y, and z attributes. |
|
A matrix4x4 type is a 4-row and 4-column matrix (4*4的矩阵) |
对象类型
对象类型 都是和Qobject对应的