blob: 2b4651feaa4765df704de93cc9a4261c7627e112 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import QtQuick
ListView {
id: view
property list<rect> rects: [ Qt.rect(1, 2, 3, 4), Qt.rect(5, 6, 7, 8) ]
property list<string> texts
model: rects
delegate: Item {
Component.onCompleted: view.texts.push(modelData.x + "/" + modelData.y)
}
}
|