qt6-bb10/qtdeclarative/tests/auto/quick/qquicklistview/data/objectModelCulling.qml

37 lines
555 B
QML

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
}
}