Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2, 6.4.2
-
None
Description
Dynamic loading data into a swipeivew loaded asyncronous is autmomatically increment the current index.
As example the following code
ApplicationWindow{ visible: true Loader{ asynchronous: true anchors.fill: parent sourceComponent: Item{ //Any content here that can take some time to load SwipeView{ anchors.fill: parent currentIndex: 0 Repeater{ model: 5 delegate: Item{ Label{ anchors.centerIn: parent text: qsTr("Test "+index) } } } onCurrentIndexChanged: { console.debug("Index was modified to ",currentIndex) } } } } }
At the end of the loading data the current item and index will be 4, and not 0 as explected.