Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-198

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

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Next Major Release, Next Patch Release
    • Other
    • All

    Description

      Hello, it would be convenient 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

            Unassigned Unassigned
            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