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

QSortFilterProxyModel::mapFromSource returns a valid QModelIndex for the filtered out item

XMLWordPrintable

    • All
    • 90a82ad8e (dev), ba9fa54b9 (6.9), e1053a157 (6.8), 487ff0231 (tqtc/lts-6.5)

      QSortFilterProxyModel::mapFromSource returns a valid QModelIndex for the child index of the filtered out item. In other words, if B is child of A in the source model and A filtered out by proxy model, QSortFilterProxyModel::mapFromSource returns a valid QModelIndex for B. But invalid QModelIndex for A.

      Attached a project that demonstrates the problems (see assert).

        For Gerrit Dashboard: QTBUG-76976
        # Subject Branch Project Status CR V

            dfaure_kdab David Faure
            tangran Mikhail K
            Votes:
            10 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: