blob: 9086e5ab575f73e1fdd49324904438006b4dddc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import QtQuick 2.0
ListView {
width: 100
height: 100
anchors.fill: parent
model: myModel
delegate: Component {
Rectangle {
height: 25
width: 100
color: model.modelData.color
Text { objectName: "name"; text: name }
Text { objectName: "section"; text: parent.ListView.section }
}
}
section.property: "name"
section.criteria: ViewSection.FullString
}
|