blob: 7377a2e86c8842e60827f328e583f4bb25e40001 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import QtQuick 2.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
}
}
}
|