blob: 9ccebfa07b2f1e354104ed63196cd1634a0a8d67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import QtQuick 1.0
Rectangle {
width: 200
height: 400
Flickable {
id: flick
anchors.fill: parent
contentWidth: 1000; contentHeight: parent.height
Rectangle {
border.color: "black"
border.width: 10
width: 1000; height: 1000
rotation: 90
gradient: Gradient {
GradientStop { position: 0; color: "black" }
GradientStop { position: 1; color: "white" }
}
}
}
Rectangle {
color: "red"
width: 100; height: 100
y: flick.contentX < 10 ? 300 : 0
Behavior on y { NumberAnimation {} }
}
}
|