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

advanced QSortFilterProxyModel with multiple filterRole

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • Core: Item Models
    • None

      as title, of course, we can get it with multiple level QSortFilterProxyModels, but single one is better. (indeed, I encountered crash when change model with different columnCount)

      another one, in TreeView, we can't assign rootIndex simply but with multiple level call of 
      mapFromSource on original model.

      with multiple filter condition, we can do more complex filter on one model.

      how to implement it with new interface or property should be reconsidered.

      one filter condition should contain role, column or row index (or range), regex and so on.

      maybe the property used for filter should be a list of it.

      just like it:
      https://github.com/RaymiiOrg/SortFilterProxyModel

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

            dfaure_kdab David Faure
            niqingliang2003 niqingliang2003
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes