Funziona come previsto con , ma non con RowLayout
. Perché? Qual è la differenza tra i due?Qual è la differenza tra Row e 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"
}
}
}
si hanno più opzioni utilizzando 'RowLayout' come l'allineamento. Ma è preferibile usare 'Row' perché le prestazioni. –
Possibile duplicato di [QML Row vs. RowLayout] (https://stackoverflow.com/questions/16914785/qml-row-vs-rowlayout) – CAMOBAP