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

QIdentityProxyModel does not properly handle/propagate 'layoutAboutToBeChanged' signal from the source model.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 5.8
    • 4.8.6
    • Widgets: Itemviews
    • None
    • baad82d242a4d8c1af6c87faaa7f25584183fd53

    Description

      QIdentityProxyModel does not properly handle/propagate 'layoutAboutToBeChanged' signal from the source model.
      In particular it stores it's persistent index list before emitting the layoutAboutToBeChanged signal and therefore before an attached views can actually store/retrieve the persistent indexes from the model. This (among other things) breaks item view's selection when sorting the source model.

      The fix should be simple, just move the q->layoutAboutToBeChanged(); line in QIdentityProxyModelPrivate::_q_sourceLayoutAboutToBeChanged
      before the for loop.

      Attachments

        Issue Links

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

          Activity

            People

              chehrlic Christian Ehrlicher
              aleserjavec Ales Erjavec
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes