blob: d8b89a147ddcb1506dad1e923aedc2943edcc007 (
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
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QtQml.Models
Item {
height: 200
width: 100
DelegateModel {
id: dm
model: 2
delegate: Item {
width: 100
height: 20
property bool isCurrent: ListView.isCurrentItem
}
}
ListView {
objectName: "listView"
model: dm
currentIndex: 1
anchors.fill: parent
}
}
|