Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.4
-
705e80b702d752633828be9ac9467090e6541c66 (qt/qtdeclarative/5.14)
Description
The following example demonstrates the issue. At startup it will run a populate animation. This animation is the same in 5.9.3 and 5.9.4. After it finishes, you can click anywhere to change the model and trigger the animation again. This time there is a difference between 5.9.3 and 5.9.4. The animation at startup and when clicking should be identical. "QQuickList/GridViewPrivate::fixupPosition: don't set moveReason" 96ec0ab8f0b2e53eff6e1887aff7e51601821845 https://codereview.qt-project.org/#/c/211935/ is the commit that changed the behavior.
import QtQuick 2.0 Item { width: 400 height: 400 ListView { id: view anchors.fill: parent model: 4 highlightRangeMode: ListView.StrictlyEnforceRange delegate: Rectangle { color: index % 2 ? "green" : "orange" width: parent.width height: 50 } populate: Transition { SequentialAnimation { NumberAnimation { property: "y"; from: 100; duration: 2000 } } } onContentYChanged: console.log(contentY) } // click to see different behavior MouseArea { anchors.fill: parent onClicked: { view.model = 5 } } }
Attachments
Issue Links
- resulted from
-
QTBUG-62864 ListView scrolling behavior breaks when using lazy loading model
-
- Closed
-
For Gerrit Dashboard: QTBUG-66163 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
283478,7 | QQuickItemView: Set moveReason to other on model change | 5.14 | qt/qtdeclarative | Status: MERGED | +2 | 0 |