diff options
Diffstat (limited to 'examples/declarative/progressbar/main.qml')
-rw-r--r-- | examples/declarative/progressbar/main.qml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/declarative/progressbar/main.qml b/examples/declarative/progressbar/main.qml new file mode 100644 index 0000000..32353fc --- /dev/null +++ b/examples/declarative/progressbar/main.qml @@ -0,0 +1,23 @@ +import Qt 4.6 + +Rectangle { + id: main + width: 800; height: 580; color: "#edecec" + + Flickable { + anchors.fill: parent; viewportHeight: column.height + Column { + id: column; spacing: 4 + Repeater { + model: 50 + ProgressBar { + property int r: Math.floor(Math.random() * 4000 + 1000) + width: main.width + value: NumberAnimation { duration: r; from: 0; to: 100; running: true; repeat: true } + color: ColorAnimation { duration: r; from: "lightsteelblue"; to: "thistle"; running: true; repeat: true } + secondColor: ColorAnimation { duration: r; from: "steelblue"; to: "#CD96CD"; running: true; repeat: true } + } + } + } + } +} |