【发布时间】:2015-06-11 12:59:15
【问题描述】:
这与Row 的预期相同,但不适用于RowLayout。为什么?两者有什么区别?
ApplicationWindow {
title: "Testing"
width: 640
height: 480
//RowLayout {
Row {
anchors.fill: parent
Rectangle {
id: rect1
width: parent.width * 0.3
height: parent.height
color: "blue"
}
Rectangle {
height: parent.height
width: parent.width * 0.7
color: "red"
}
}
}
【问题讨论】:
-
您有更多使用
RowLayout的选项,例如对齐。但最好使用Row,因为性能。