Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.2.0, 5.2.1, 5.3.0 RC1
-
None
-
any
Description
Using 'ListView::positionViewAtIndex' to scroll to the position of an item that is about to be inserted duplicates the item in the view.
I have attached a repro that demonstates the bug. When you click it will insert an item into the ListModel and also has a onRowsAboutToBeInserted that scrolls to the position the item will appear (onRowsInserted demonstrates the same behaviour).
Manually scrolling away from the item and back again will remove the duplicate from the view (I'm guessing as the delegates are deleted and recreated).