QML学习笔记之三

1 import QtQuick 1.1
2 
3 Row{
4     spacing:2
5     Rectangle{color:"red";50;height:50}
6     Rectangle{color:"green";20;height:50}
7     Rectangle{color:"blue";50;height:20}
8 }
1 Grid{
2     columns: 3
3     spacing:2
4     Rectangle{color:"red";50;height:50}
5     Rectangle{color:"green";20;height:50}
6     Rectangle{color:"blue";50;height:20}
7     Rectangle{color:"cyan";50;height:50}
8     Rectangle{color:"magenta";10;height:10}
9 }
原文地址:https://www.cnblogs.com/wangzhiyu811/p/3204505.html