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

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