Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.3.2, 5.4.0 Beta
-
None
-
1adbf16f2526b797a70bccf21b1400451f9d4cbb (qt/qtdeclarative/5.12)
Description
When delegates have initial zero opacity, populate transition does not work for items, that are outside of ListView's viewport. So, such items never become visible.
Test case:
import QtQuick 2.3 Item { id: root width: 300; height: 300 Component.onCompleted: listView.model = 50 Item { anchors.fill: parent ListView { id: listView anchors.fill: parent model: root.itemCount delegate: Rectangle { color: "lightgray" opacity: 0 width: ListView.view.width; height: 30 Text { anchors.centerIn: parent text: index } } populate: Transition { NumberAnimation { property: "opacity"; to: 1.0; duration: 1000 } } } } }