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

[REG 5.12.4 -> 5.13.0] QTableView::sortByColumn() no longer allows re-sorting if sortingEnabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.15.2
    • 5.13
    • Widgets: Itemviews
    • None
    • 3ddffd2d8b619863930854705ca5577c0389d65f (qt/qtbase/dev) ab9f69445584d876d0a0dc3cf1d829fd275f199f (qt/qtbase/5.15)

    Description

      Since commit d0f909f, QTableView::sortByColumn() no longer calls sort() on the model if sortingEnabled is true, relying on setSortIndicator() to do the job.  This has no effect if the column+order requested matches the current sort indicator, meaning that re-sorting after inserting/modifying model items no longer works.  This apparently also breaks calling sortByColumn() for the first time after populating the model if sortingEnabled has already been set beforehand, which will be the case when using uic.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            fbriere Frédéric Brière
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes