aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/usingmodel/view.qml
blob: e8b1fb2fba56afe215cf04a928e6ece85cf26809 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

import QtQuick
import PersonModel

ListView {
    width: 100
    height: 100
    anchors.fill: parent
    model: PersonModel
    delegate: Component {
        Rectangle {
            height: 25
            width: 100
            Text {
                text: display + ": " + myrole
            }
        }
    }
}