グリッド/親の幅と高さを完全かつ均等に埋める要素のグリッドをqmlで作成できるかどうか疑問に思っています。
Grid {
columns: 2
Repeater {
model: 4
Rectangle {
width: /* ??? */
height: / * ??? */
}
}
}
ここで絶対値を設定する必要があると思います。anchors.fill: parent
のようなものと同様に、使用は機能しませんwidth: parent.width / 2
。