blob: 2191b6fedcec5e23b8fccdbdd1f66f5e15ed79b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import Qt 4.6
//! [0]
Rect {
id: blurtest; width: 600; height: 200; color: "white"
Image {
id: pic; source: "qtlogo-64.png"; anchors.verticalCenter: parent.verticalCenter
opacity: (600.0-pic.x) / 600;
MouseRegion {
anchors.fill: parent
drag.target: pic
drag.axis: "x"
drag.xmin: 0
drag.xmax: blurtest.width-pic.width
}
}
}
//! [0]
|