zoukankan      html  css  js  c++  java
  • Introduction to the QML language

    Objects are specified by their type, followed by a pair of braces. Object types always begin with a capital letter.

    Objects 类型都是大写开头。

    Property naming
    Properties begin with a lowercase letter (with the exception of Attached Properties).

    全部小写开头,除了Attatched properties

    List properties

    Item {
        children: [
            Image {},
            Text {}
        ]
    }

    Grouped Properties

    Attached Properties

    可以参考wpf的附加属性:

    XAML开发入门之附加属性和绑定属性

    http://dev.yesky.com/msdn/112/2663612.shtml

    Signal Handlers

    All signal handlers begin with "on".

    MouseArea {
        acceptedButtons: Qt.LeftButton | Qt.RightButton
        onPressed: if (mouse.button == Qt.RightButton) console.log("Right mouse button pressed")
    }

  • 相关阅读:
    C#泛型
    C#接口
    C#委托和事件
    Unity Ray 射线
    C#学习基础
    Graph | Eulerian path
    Careercup | Chapter 8
    Leetcode | Pow(x, n)
    Leetcode | Gray code
    分布式缓存
  • 原文地址:https://www.cnblogs.com/cute/p/2117497.html
Copyright © 2011-2022 走看看