blob: a8afa8f78ae23c0d92ffed19f94f63b099b3b197 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import QtQuick
Rectangle {
id: root
objectName: "root"
color: ph.active ? "coral" : "cadetblue"
border.color: "black"
width: 100; height: 100
PointHandler {
id: ph
objectName: root.objectName + "PointHandler"
}
Text {
anchors.centerIn: parent
text: ph.point.position.x.toFixed(1) + ", " + ph.point.position.y.toFixed(1)
}
}
|