width: 256
height: 256
+ }
- Rectangle{
- id: cursor
- width: 10
- height: 10
- color: "red"
- z: 32
-
- x: moveArea.x + (moveArea.width * 0.5) + btConn.x
- y: moveArea.y + (moveArea.height * 0.5) + btConn.y
+ Rectangle{
+ id: cursorRectangle
+ width: 10
+ height: 10
+ color: "red"
- onXChanged: console.log("New x: " + x)
- onYChanged: console.log("New y: " + y)
- }
+ x: moveArea.x + (moveArea.width * 0.5) + btConn.x - (cursorRectangle.width * 0.5)
+ y: moveArea.y + (moveArea.height * 0.5) + btConn.y - (cursorRectangle.height * 0.5)
}
-
BluetoothDiscoveryModel{
id: btDiscovery