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

add rootIndex for QSortFilterProxyModel

XMLWordPrintable

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

      rootindex of TreeView does not adapt well to QSortFilterProxyModel.
      when the filter model's content changed, the rootindex may become invalid.
      but when QSortFilterProxyModel restore it's content(with sourceModel no change), the rootIndex can't restore automatically.

      rootIndex is also a filter, maybe implemented by QSortFilterProxyModel can work better.

        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:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes