Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-103367

Using a Loader with a ListView can cause sections to become corrupted when rebuilding model

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15
    • None
    • Linux/X11

    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.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            fcarney Frank Carney
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes