qt6-bb10/qtdeclarative/tests/auto/quick/qquicklistview/data/headerCrash.qml

21 lines
367 B
QML

import QtQuick 2.0
ListView {
id: myList
width: 400; height: 400
model: 10
header: Item {
height: parent ? 20 : 10
width: 400
}
delegate: Rectangle {
width: myList.width; height: 20
color: index % 2 ? "green" : "red"
}
Component.onCompleted: myList.verticalLayoutDirection = ListView.BottomToTop
}