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

QHeaderView::restoreState changes sortability

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.2
    • Fix Version/s: None
    • Component/s: Widgets: Itemviews
    • Labels:
      None

      Description

      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.

        Attachments

        For Gerrit Dashboard: QTBUG-80577
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            matthew.woehlke Matthew Woehlke
            Reporter:
            matthew.woehlke Matthew Woehlke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There is 1 open Gerrit change