Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15
-
None
Description
Using a Loader to load a naked ListView can cause sections to become corrupted when rebuilding model.
When using a ListView as the first element in a Component. Then loading this component with a Loader. I am finding that the section headers become corrupted when rebuilding the underlying model. Rebuilding meaning removing all rows and putting in new rows. I am able to duplicate this with a QML ListModel as my source model.
I have built a test program that shows this behavior. It has 2 listviews. One exhibits this behavior, the other does not. The first button changes the model data. The second button switches between listviews.
In order to cause the issue listview 1 needs to be loaded. The scroll down the listview, then switch the model data. This will show how the section headers get corrupted.