mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-03-14 16:09:41 +08:00
17 lines
364 B
QML
17 lines
364 B
QML
import QtQuick 2.15
|
|
Grid {
|
|
id: root
|
|
property int cellSide: 5
|
|
anchors.fill: parent
|
|
rows: height/cellSide; columns: width/cellSide
|
|
clip: true
|
|
Repeater {
|
|
model: root.columns*root.rows
|
|
Rectangle {
|
|
width: root.cellSide; height: root.cellSide
|
|
color: (index%2 == 0) ? "gray" : "white"
|
|
}
|
|
}
|
|
}
|
|
|