Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativemousearea / data / updateMousePosOnClick.qml
1 import QtQuick 1.0
2
3 Rectangle {
4     color: "#ffffff"
5     width: 320; height: 240
6     MouseArea {
7         id: mouseRegion
8         objectName: "mouseregion"
9         anchors.fill: parent
10         Rectangle {
11             id: ball
12             objectName: "ball"
13             width: 20; height: 20
14             radius: 10
15             color: "#0000ff"
16             x: { mouseRegion.mouseX }
17             y: mouseRegion.mouseY
18         }
19     }
20 }