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

Implement moveColumn/Row from QAbstractItemModel in Qt sub-classes, for convenience.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.13.0 Alpha 1, Some future release
    • Core: Item Models
    • None
    • 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

            dfaure_kdab David Faure
            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