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

ListView content incorrect shifts during simultaneous addition and sorting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.0, 6.0.0, 6.4.0
    • Quick: Other
    • None
    • Linux/Other display system, Windows

    Description

      The problem appears when adding new items and sorting them at the same time.

      To reproduce the bug, run the listViewTest project. At the bottom there is a CheckBox for start and pause adding new items. And ability to sort items in ascending and descending order.
      Click on the "Loading status" checkbox. And after a few seconds, change the sort order several times. The content in the ListView will start shifts.

      In example there are a class "Storer" which store vector of chars (this class inherited from QAbstractListModel).
      There are a class "ProxyStorer" which helps to sort elements (inherited from QSortFilterProxyModel).
      There is a ListView that displays a number of rectangles, rectangles contain the char from model and it's X coordinates.

      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
            sergeymizonov Sergey Mizonov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes