summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativemousearea/data/updateMousePosOnClick.qml
blob: 600849975d9a0df174d35bad8c4f07b3a502d5f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import Qt 4.7

Rectangle {
    color: "#ffffff"
    width: 320; height: 240
    MouseArea {
        id: mouseRegion
        objectName: "mouseregion"
        anchors.fill: parent
        Rectangle {
            id: ball
            objectName: "ball"
            width: 20; height: 20
            radius: 10
            color: "#0000ff"
            x: { mouseRegion.mouseX }
            y: mouseRegion.mouseY
        }
    }
}