blob: 137b8287b766cb7783ff9538546c5e1992a5d4f2 (
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
28
29
30
31
|
import QtQuick 2.0
Item {
id: root;
property int count: 100
property int staticCount: 1000;
property real t;
NumberAnimation on t { from: 0; to: 1000; duration: 1000; loops: Animation.Infinite }
Grid {
anchors.fill: parent
columns: root.width / 100
spacing: 1
Repeater {
id: repeater
model: root.count
Rectangle {
width: 100
height: 20
color: "steelblue"
radius: 4
Text { x: 0; text: "1"; color: "red" }
Text { x: 10; text: "2"; color: "blue" }
Text { x: 20; text: "3"; color: "lightsteelblue" }
Text { x: 30; text: "-"; color: "white" }
Text { x: 40; text: index == count - 1 ? Math.round( t ) : "[]"; }
}
}
}
}
|