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

QComboBox loses selected item when several proxies are chained

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • 5.8
    • 5.6.1
    • Widgets: Itemviews
    • None
    • baad82d242a4d8c1af6c87faaa7f25584183fd53

    Description

      Please see the attached archive for the example project.

      When several proxy models are chained and there's QIdentityProxyModel in the middle of the chain, QComboBox loses selected item when the sorting order changes.

      This actually seems to be `QIdentityProxyModel's` bug, since chained `QSortFilterProxyModel` instances work pretty well. I managed to fix this by patching `qidentityproxymodel.cpp` as suggested in https://bugreports.qt.io/browse/QTBUG-44143, which seems to be related issue.

      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
              tonygluk Anton Karandeev
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes