2019-07-05 16:58:46 +01:00
|
|
|
import QtQuick 2.10
|
2019-07-20 09:06:26 +01:00
|
|
|
import QtQuick.Layouts 1.10
|
2019-07-05 16:58:46 +01:00
|
|
|
|
2019-07-20 09:06:26 +01:00
|
|
|
Item
|
2019-07-05 16:58:46 +01:00
|
|
|
{
|
|
|
|
width: 500
|
|
|
|
height: 500
|
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
id: mouse
|
|
|
|
anchors.fill: parent
|
|
|
|
hoverEnabled: true
|
|
|
|
}
|
|
|
|
|
2019-07-20 09:06:26 +01:00
|
|
|
RowLayout {
|
|
|
|
id: layout
|
|
|
|
anchors.fill: parent
|
|
|
|
spacing: 0
|
|
|
|
Repeater {
|
|
|
|
id: rep
|
|
|
|
model: [ "white", "yellow", "red", "blue", "gray", "black" ]
|
|
|
|
delegate: Rectangle {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
color: modelData
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-05 16:58:46 +01:00
|
|
|
Presenter {
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
xPos: mouse.mouseX/width
|
|
|
|
yPos: mouse.mouseY/height
|
|
|
|
}
|
|
|
|
}
|