Fluid
Loading...
Searching...
No Matches
AutomaticGrid Class Reference

Lay out children in a grid that automatically fits the available space. More...

Inheritance diagram for AutomaticGrid:
Inheritance graph
[legend]
Collaboration diagram for AutomaticGrid:
Collaboration graph
[legend]

Detailed Description

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
}
}
}
}

The documentation for this class was generated from the following file: