I am wondering if it is possible to create a grid of elements in qml that completely and evenly fill the width and height of the grid / parent:
Grid {
columns: 2
Repeater {
model: 4
Rectangle {
width: /* ??? */
height: / * ??? */
}
}
}
I think that absolute values need to be set here. Using anchors.fill: parentwill not work as well as something like width: parent.width / 2.
source
share