博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Qml数据类型
阅读量:6866 次
发布时间:2019-06-26

本文共 1490 字,大约阅读时间需要 4 分钟。

hot3.png

总体上,qml的数据类型分为基本数据类型和对象类型,基本类型用于表示简单的值,其中一部分由qml语言提供,另一部分来自qml模块。

qml对象类型指类的实例,又分为qml对象类型和javascript对象,qml引擎支持几乎所有的javascript标准对象

一、基本数据类型

1.1 qml提供的基本数据类型

Binary true/false value

Number with a decimal point, stored in double precision

Named enumeration value

Whole number, e.g. 0, 10, or -20

List of QML objects

Number with a decimal point

Free form text string

Resource locator

Generic property type

 

1.2 qml模块提供的基本类型

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

 

二、对象类型

2.1 qml对象类型

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

 

2.2 javascript对象

 

转载于:https://my.oschina.net/assange/blog/730261

你可能感兴趣的文章
我与监控宝之间的点点滴滴
查看>>
delphi 数据库显示的TDBGrid配置
查看>>
对51CTO的看法
查看>>
userenv和sys_context函数
查看>>
是否会回到起点.回忆只能是回忆
查看>>
原创数据结构算法Flash动画演示课件-Action Script(AS)脚本实现
查看>>
基于Mysql主从同步的读写分离
查看>>
容灾备份技术的分类概述
查看>>
用乘法求圆周率
查看>>
自学使用sort他命令使用
查看>>
芒果xo
查看>>
Linux优化和目录结构
查看>>
搭建zabbix监控系统
查看>>
Docker 容器的网络连接
查看>>
正压防爆气体分析系统
查看>>
Angularjs 中select回显后重复选项的解决
查看>>
BA 的岗位要求3
查看>>
Java Web中的Filter和Interceptor的区别
查看>>
shell编程中for/while/util/case/select/break/continue
查看>>
YUM库与YUM源的配置实例
查看>>