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

chained QSortFilterProxyModels don't update roleNames correctly (with fix)

XMLWordPrintable

    • I102788f2c9bf97b4002b350673f9219e32e7a052

      QtQuick 2.0's caching of roleNames triggers a bug in the QSortFilterProxyModel (proxy1) handling of a source model reset signal if the source model itself is also a proxy model (proxy2).

      On setting proxy2's sourceModel proxy1 does not not update its roleNames.

      QtQuick ListView delegates won't correctly display any of the model's data then.

      Proposed fix is to update the roleNames in the reset handler. I'll post a change to gerrit with fix + autotest.

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

            njeisecke Nils Jeisecke
            njeisecke Nils Jeisecke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes