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
/
basic1.qml
1
import QtQuick 1.0
2
3
Rectangle {
4
color: "blue"
5
width: 200
6
height: 300
7
id: page
8
ListView {
9
anchors.fill: parent
10
delegate: Rectangle {
11
color: "red"
12
width: 100
13
height: 100
14
Rectangle {
15
anchors.centerIn: parent
16
width: 60
17
height: 60
18
color: name
19
}
20
}
21
model: ListModel {
22
ListElement {
23
name: "palegoldenrod"
24
}
25
ListElement {
26
name: "lightsteelblue"
27
}
28
}
29
}
30
}