projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
QML_RUNTIME_TESTING should be disabled by default.
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
quick
/
qquickgridview
/
data
/
asyncloader.qml
1
2
import QtQuick 2.0
3
4
Rectangle {
5
id: root
6
width: 300; height: 400
7
color: "#2200FF00"
8
9
Loader {
10
asynchronous: true
11
sourceComponent: viewComp
12
anchors.fill: parent
13
}
14
15
Component {
16
id: viewComp
17
GridView {
18
objectName: "view"
19
width: 300; height: 400
20
model: 40
21
delegate: aDelegate
22
23
highlight: Rectangle { color: "lightsteelblue" }
24
}
25
}
26
// The delegate for each list
27
Component {
28
id: aDelegate
29
Item {
30
objectName: "wrapper"
31
width: 100
32
height: 100
33
Text { text: 'Index: ' + index }
34
}
35
}
36
}