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
/
qdeclarativexmllistmodel
/
data
/
roleErrors.qml
1
import QtQuick 1.0
2
3
XmlListModel {
4
source: "model.xml"
5
query: "/Pets/Pet"
6
XmlRole { name: "name"; query: "/name/string()" } //starts with '/'
7
XmlRole { name: "type"; query: "type" } //no type
8
XmlRole { name: "age"; query: "age/" } //ends with '/'
9
XmlRole { name: "size"; query: "size/number()" } //wrong type
10
}