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
          Eugene Shalygin
        2. test.patch
          1 kB
          Eugene Shalygin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes