| 1 |
import QtQuick 2.0 |
| 2 |
|
| 3 |
Rectangle { |
| 4 |
width: 320 |
| 5 |
height: 480 |
| 6 |
color: "white" |
| 7 |
Image { |
| 8 |
id: wooohooo |
| 9 |
x: 50 |
| 10 |
y: 120 |
| 11 |
width: 256 |
| 12 |
height: 240 |
| 13 |
source: "../shared/winter.png" |
| 14 |
rotation: 30 |
| 15 |
scale: 1.25 |
| 16 |
transform: [ |
| 17 |
Rotation { origin { x: 128; y: 120 } axis { x: 0; y: 1; z: 0 } angle: 60 } |
| 18 |
, Translate { x: 10; y: 0 } |
| 19 |
] |
| 20 |
Rectangle { |
| 21 |
width: 50 |
| 22 |
height: 50 |
| 23 |
color: "steelBlue" |
| 24 |
MouseArea { |
| 25 |
anchors.fill: parent |
| 26 |
drag.target: parent |
| 27 |
drag.axis: Drag.XAndYAxis |
| 28 |
drag.minimumX: 0 |
| 29 |
drag.maximumX: wooohooo.width - parent.width |
| 30 |
drag.minimumY: 0 |
| 31 |
drag.maximumY: wooohooo.height - parent.height |
| 32 |
} |
| 33 |
} |
| 34 |
} |
| 35 |
} |
| 36 |
|