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

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
        }
    }
}