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

Implement functions moveColumn and moveRow from QAbstractItemModel virtual ones, for convenience.

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 5.13.0 Alpha 1, Some future release
    • Fix Version/s: None
    • Component/s: Core: Item Models
    • Labels:
      None
    • Platform/s:
      All

      Description

      Hello, it would be nice to have the feature in a QTableWidget.

      What about implementing moveColumn and moveRow in :

      • QStandardItemModel,
      • the three convenience classes QList/Table/TreeWidget in their respective model inner-workings? For example, from source, QTableWidget uses a very thin implementation on top of QAbstractTableModel in its QTableModel. Why not implement the move function in this thin layer?

      Very big props to peppe and osse in IRC, whom explained to me the business and suggested asking the feature here.

      I am very far from understanding all of the subtleties of this Qt module, every suggestion or explanation is welcome.
      (for the context : I am using a QTableWidget and the header sectionsMovable feature. I would like to propagate the view move into a model move and have to do a custom rearranging at the moment.)

      BR, Maxime

        Attachments

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

          Activity

            People

            Assignee:
            dfaure_kdab David Faure
            Reporter:
            maxzor Maxime Chambonnet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes