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

How do we handle huge models and QHeaderView section move

    XMLWordPrintable

Details

    • 9e3a96189 (dev)

    Description

      This is a discussion issue for:

      (1) https://codereview.qt-project.org/c/qt/qtbase/+/575360
      and
      (2) https://codereview.qt-project.org/c/qt/qtbase/+/582668

      We have quite a few reports on QHeaderView taking too much memory on huge models (e.g reflecting an extremely sized Database Table). This is fixed by (1) - that however emitted sectionMoved for moveSection (and swapSection).
      The issue is that a DB table (and model) can often easily change the order in the model.

      That leaves us with the following questions:

      • Should we have huge model as a flag in the Model itself?
      • Should we handle request of sections in the model - and how (API or flags)
      • If we don't use the model then how should we handle the move of sections?
      • Should the QAbstractItemModel itself support move (and maybe swap functions)?

      Attachments

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

        Activity

          People

            tmartsum Thorbjørn Lund Martsum
            tmartsum Thorbjørn Lund Martsum
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes