• Qml笔记之QT对象


    提供一个全局对象,其中包含Qt中有用的枚举和函数。


    application : object  application对象提供对许多QML组件共享的全局应用程序状态属性的访问。

    inputMethod : object  QInputMethod类提供对活动文本输入方法的访问。
    platform : object   平台对象提供有关基础平台的信息。
    styleHints : object  

    这是Qt成员的完整列表,包括继承的成员
    
    application : object
    inputMethod : object
    platform : object
    styleHints : object
    string atob(data)   ASCII到二进制-此函数对base64编码的数据字符串进行解码并返回它。
    binding(function)   返回表示属性绑定的JavaScript对象。
    string btoa(data)
    color colorEqual(color lhs, string rhs)
    object createComponent(url, mode, parent)
    object createQmlObject(string qml, object parent, string filepath)
    color darker(color baseColor, real factor)
    font(object fontSpecifier)
    list<string> fontFamilies()
    string formatDate(datetime date, variant format)
    string formatDateTime(datetime dateTime, variant format)
    string formatTime(datetime time, variant format)
    color hsla(real hue, real saturation, real lightness, real alpha)
    color hsva(real hue, real saturation, real value, real alpha)
    object include(string url, jsobject callback)
    bool isQtObject(object)
    color lighter(color baseColor, real factor)
    locale(name)
    string md5(data)
    matrix4x4(real m11, real m12, real m13, real m14, real m21, real m22, real m23, real m24, real m31, real m32, real m33, real m34, real m41, real m42, real m43, real m44)
    bool openUrlExternally(url target)
    point point(int x, int y)
    string qsTr(string sourceText, string disambiguation, int n)
    string qsTrId(string id, int n)
    string qsTrIdNoOp(string id)
    string qsTrNoOp(string sourceText, string disambiguation)
    string qsTranslate(string context, string sourceText, string disambiguation, int n)
    string qsTranslateNoOp(string context, string sourceText, string disambiguation)
    quaternion(real scalar, real x, real y, real z)
    quit()
    rect rect(int x, int y, int width, int height)
    url resolvedUrl(url url)
    color rgba(real red, real green, real blue, real alpha)
    size(int width, int height)
    color tint(color baseColor, color tintColor)
    vector2d(real x, real y)
    vector3d(real x, real y, real z)
    vector4d(real x, real y, real z, real w) 
  • 相关阅读:
    数组对象遍历新增属性
    watch监听数据的改变
    同一个数组查重
    SpringCloud搭建(二) 支付模块搭建
    SpringCloud搭建(一) 聚合父工程搭建
    线程池
    同步容器
    容器
    JVM学习
    线程---ThreadLocal
  • 原文地址:https://www.cnblogs.com/countryboy666/p/14452457.html
Copyright © 2020-2023  润新知