Warning, /webapps/qmlonline/qml/examples/gridlayout.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.7 0002 import QtQuick.Layouts 1 0003 0004 GridLayout { 0005 id: root 0006 rows: 5 0007 columns: 5 0008 anchors.fill: parent 0009 columnSpacing: 0 0010 rowSpacing: 0 0011 0012 Repeater { 0013 id: repeater 0014 model: parent.rows * parent.columns 0015 Rectangle { 0016 property var value: index / repeater.model 0017 color: Qt.hsva(value, value, value) 0018 width: root.width / root.columns 0019 height: root.height / root.rows 0020 } 0021 } 0022 }