2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2016-02-26 17:28:30 +01:00
|
|
|
|
2021-01-15 17:02:51 +01:00
|
|
|
import QtQuick 2.4
|
|
|
|
|
import QtQml.Models 2.2
|
2016-02-26 17:28:30 +01:00
|
|
|
|
2016-06-15 13:07:10 +02:00
|
|
|
Rectangle {
|
2021-01-15 17:02:51 +01:00
|
|
|
DelegateModel {
|
2016-06-15 13:07:10 +02:00
|
|
|
id: itemModel
|
|
|
|
|
Rectangle { height: 30; width: 80; color: "red" }
|
|
|
|
|
Rectangle { height: 30; width: 80; color: "green" }
|
|
|
|
|
Rectangle { height: 30; width: 80; color: "blue" }
|
|
|
|
|
}
|
2016-02-26 17:28:30 +01:00
|
|
|
|
2016-06-15 13:07:10 +02:00
|
|
|
ListView {
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
model: itemModel
|
|
|
|
|
}
|
|
|
|
|
}
|