qt6-bb10/qtdeclarative/tests/auto/quick/qquicklistview2/data/bindOnHeaderAndFooterYPosit...

30 lines
535 B
QML

import QtQuick
ListView {
width: 300
height: 200
spacing: 20
orientation: ListView.Horizontal
header: Rectangle {
y: (ListView.view.height - height) / 2
color: 'tomato'
width: 50
height: 50
}
footer: Rectangle {
y: (ListView.view.height - height) / 2
color: 'lime'
width: 50
height: 50
}
model: 3
delegate: Text {
text: 'Foobar'
verticalAlignment: Text.AlignVCenter
height: ListView.view.height
}
}