projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
declarative
/
qmlvisual
/
ListView
/
basic3.qml
1
import QtQuick 1.0
2
3
Rectangle {
4
color: "blue"
5
width: 200
6
height: 300
7
id: page
8
ListModel {
9
id: model
10
ListElement {
11
name: "palegoldenrod"
12
}
13
ListElement {
14
name: "lightsteelblue"
15
}
16
}
17
ListView {
18
anchors.fill: parent
19
model: model
20
delegate: Rectangle {
21
color: "red"
22
width: 100
23
height: 100
24
Rectangle {
25
anchors.centerIn: parent
26
width: 60
27
height: 60
28
color: name
29
}
30
}
31
}
32
}