aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview/data/objectModelCulling.qml
blob: c0a70ec4856ff3b575f0b191009043169226ce6d (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
import QtQuick 2.12

import QtQml.Models 2.12

Item {

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