Bu, ile belirtilen şekilde çalışır, ancak RowLayout
ile çalışmaz. Niye ya? İkisi arasındaki fark nedir?Row ile RowLayout arasındaki fark nedir?
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"
}
}
}
Sen 'hizalama gibi RowLayout' kullanarak daha fazla seçenek var. Ancak 'Satır'ın kullanılması tercih edilir çünkü performans. –
Olası [QML Satır ve RowLayout] kopyası (https://stackoverflow.com/questions/16914785/qml-row-vs-rowlayout) – CAMOBAP