Lay out children in a grid that automatically fits the available space.
import QtQuick
import Fluid as Fluid
Item {
width: 600
height: 600
Fluid.AutomaticGrid {
anchors.fill: parent
cellWidth: 100
cellHeight: cellWidth
model: 20
delegate: Rectangle {
id: item
height: 100.0 * Math.random()
color: Qt.rgba(Math.random(), Math.random(), Math.random(), Math.random())
Text {
text: index
}
}
}
}