aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview/data/HighlightResize.qml
blob: 2b07b39d2077176f910ba4cf33c5715e5e31c8e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import QtQuick 2.0

ListView {
    id: view

    width: 400
    height: 400
    model: 5

    highlight: Rectangle {
        color: "skyblue"
    }

    delegate: Item {
        width: 100 + index * 20
        height: 100 + index * 10

        Text {
            anchors.centerIn: parent
            text: model.index
        }
    }
}