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

QSortfilterProxyModel invalidateFilter() is broken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.12.2
    • Fix Version/s: None
    • Component/s: Core: Item Models
    • Labels:
      None
    • Environment:
      Built and Tested on
      Windows 10
      Qt 5.12.2
      MSVC2017 64bit
    • Platform/s:
      Windows

      Description

      As suggested in https://bugreports.qt.io/browse/QTBUG-82470?focusedCommentId=501596&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-501596

      I open a new Bug with an attached project.

      It seems, that invalidateFilter() does not work as expected

      When Gui appears:

      Toggle list filter filters the list for odd and even by DataRole

      Long Press calls SortFilterProxyModel::resetFilter() which does not work.

      Workaround is to call setFilterWildcard(""); instead

        Attachments

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

          Activity

            People

            Assignee:
            dfaure_kdab David Faure
            Reporter:
            hauck Philipp Hauck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes