import QtQuick 2.3
import QtQuick.Window 2.2
Window {
visible: true
width: 380
height: 320
Grid {
columns: 2
//spacing: 1
Rectangle {width: 50; height: 50; color: "red"}
Rectangle {width: 50; height: 50; color: "green"}
Rectangle {width: 50; height: 50; color: "gray"}
Rectangle {width: 50; height: 50; color: "blue"}
Rectangle {width: 50; height: 50; color: "lightgray"}
}
}
Column、Row、Grid、Flow的使用
最新推荐文章于 2024-04-25 15:05:42 发布