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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes