import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.12
import QtGraphicalEffects 1.14Window {visible: truewidth: 640height: 480title: qsTr("Hello World")Grid {id: gridwidth: 15height: 200columns: 3x: 300y: 100visible: false Repeater {
model: grid.width / 5 * 200 / 5Rectangle {width: 5height: 5color: index % 2 ? "black" : "white"Component.onCompleted: {console.log("rect" + index)}}}}Rectangle {id: maskRectx: 200y: 100width: grid.widthheight: grid.heightvisible: trueradius: 10border.color: "red"}Button {width: 50height: 50x: 100y: 100onClicked: {grid.height -= 10}}Rectangle{width: grid.width + 4height: grid.height + 4
anchors.horizontalCenter: parent.horizontalCenteranchors.bottom: parent.bottomborder.color: "red"radius: 10border.width: 3OpacityMask {source: gridmaskSource: maskRectanchors.fill: parentanchors.margins: 2}}}