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

Erratic display of items in QListView with custom widget, delegate and sort filter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 6.8.1
    • Widgets: Itemviews
    • None
    • Visual Studio x64

    Description

      If I use a QSortFilterProxyModel to filter out items, the display in the view is unpredictable.

      Example attached code example and video shows the behavior

      Create a list of custom widgets with randomly assigned ratings.  0-5.  0 = unrated.

      Use check boxes to only display items with that rating.  No rating selected means show all items.

      Checking then uncheck an item does not display all items, even though filterAcceptsRow is returning true.

       

       

      Attachments

        1. QtTest.mp4
          64 kB
          Doug Rogers
        2. bugReport.zip
          21.65 MB
          Doug Rogers
        3. QTBUG-134083.7z
          3 kB
          Christian Ehrlicher
        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
            doug_rogers Doug Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes