import QtQml 2.3
import QtQml.Models 2.3
import QtQuick.Templates 2.2
import QtQuick 2.15
import QtQuick.Controls 2.15
import matrixfield 1.0
Rectangle {
width: Constants.width
height: Constants.height
color: Constants.backgroundColor
Grid {
columns: 2;
rows: 4;
spacing: 2;
Rectangle {
color: "cyan";
width: 15;
height: 15;
MouseArea {
id: mouseArea1
anchors.fill: parent
onClicked: parent.color = 'red'
}
MouseArea {
id: mouseArea2
anchors.fill: parent
onClicked: parent.color = 'cyan'
}
}
}
}