5 width: 320; height: 240
11 width: 120; height: 120
15 objectName: "mouseregion"
21 property bool emitPositionChanged: false
22 property bool mouseMatchesPos: true
26 if (mouse.x != mouseX || mouse.y != mouseY)
27 mouseMatchesPos = false
28 x1 = mouseX; y1 = mouseY
31 onPositionChanged: { emitPositionChanged = true }
33 if (mouse.x != mouseX || mouse.y != mouseY)
34 mouseMatchesPos = false
35 x2 = mouseX; y2 = mouseY
38 if (mouse.x != mouseX || mouse.y != mouseY)
39 mouseMatchesPos = false
40 x2 = mouseX; y2 = mouseY