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

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

      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.

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

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes