blob: 5dd322b5f5a89f85f080667ded96d7cd9a3f9138 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import QtQml 2.1
import QtQuick 2.1
Rectangle {
Instantiator {
objectName: "instantiator1"
model: model1
delegate: QtObject {
property string datum: model.text
}
}
Component.onCompleted: {
model1.add("Delta");
model1.add("Gamma");
model1.add("Beta");
model1.add("Alpha");
}
}
|