Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.0.0, 5.1.0 , 5.2.0 Beta1
-
None
-
f449534020adc8623ebfced5daae331ef56c4421
Description
Run code below. ListView.contentHeight doesn't update when the header height updates.
import QtQuick 2.0 ListView { model: 50 width: 320; height: 480 onContentHeightChanged: console.log("Content height changed to", contentHeight) delegate: Rectangle { width: 320; height: 50 color: Qt.rgba(Math.random(), Math.random(), Math.random(), 1.0) } header: Rectangle { color: "red" width: 320; height: 50 onHeightChanged: console.log("Header height changed to", height) Timer { running: true interval: 1000 onTriggered: { console.log("Content heigh before: ", contentHeight) parent.height = 100 console.log("Content heigh after: ", contentHeight) } } } }
Attachments
For Gerrit Dashboard: QTBUG-24292 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
71884,3 | Also update viewport size when header/footer size changes | stable | qt/qtdeclarative | Status: MERGED | +2 | 0 |