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

QHeaderView::restoreState() corrupts view when restoring state with less number of columns

    XMLWordPrintable

Details

    Description

      Passing data, generated by a call to QHeaderView::saveState() with smaller number of columns to QHeaderView::restoreState() corrupts view. 

       

      I did not check the MWE with 5.8, but users at https://github.com/qbittorrent/qBittorrent/issues/6784 reports that this works fine with 5.8.0.

      Attachments

        1. qheaderview.tar.gz
          0.9 kB
        2. test.patch
          1 kB

        Activity

          People

            dfaure_kdab David Faure
            eugeneshalygin Eugene Shalygin
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: