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

QSortFilterModel and strange unhiding of columns

    XMLWordPrintable

Details

    Description

      I have created a datamodel that has 3 columns, I created 2 views on the same model using QSortFilterProxyModel.
      In the ListViews I hide the first and last columns and filter depending on the third (hidden) column.
      I then created the famous 4 buttons '<','<<','>' and '>>' to move items
      between the two states, the strange thing is that if I select items
      (sing or multiple selections) and 'move' them between the two views all
      works well, UNLESS I select the first row and then try to move, in that
      case the two hidden columns in the originators listView become visible again!

      Code for a minimal example demonstrating this is attached.

      Attachments

        1. strangeUnhide.tar.bz2
          3 kB
          David Heremans
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            markan Marko Kangas
            david_heremans David Heremans
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes