blob: 9ca79ec8e40fd67e9ea7d63d7e26d241ca4aa12b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
import QtQuick 2.12
import QtQml.Models 2.12
Item {
anchors.fill: parent
ObjectModel {
id: model1
objectName: "model1"
Rectangle {
color: "red"
objectName: "redRect"
height: 30; width: 80;
}
}
ObjectModel {
id: model2
objectName: "model2"
Rectangle {
color: "green"
height: 30; width: 80;
x:10
}
}
ListView {
id: listView
objectName: "lv"
anchors.fill: parent
}
}
|