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

QHeaderView::restoreState changes sortability

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.11.2
    • Widgets: Itemviews
    • None
    • Someone's on it

      Let's say I have an application with a non-sortable tree view for which I am persisting the column sizes using QHeaderView::{save,restore}State. Now lets say I change the view to be sortable.

      If QHeaderView::restoreState is called with non-empty data, the view will not be sortable. Accordingly, my users have a different experience depending on whether or not they have run a previous version of the application.

      This doesn't make sense; sortability is almost never a dynamic, persistent property of an item view. It is almost always a static property of the application that should not be modified by QHeaderView::restoreState.

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

            matthew.woehlke Matthew Woehlke
            matthew.woehlke Matthew Woehlke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes