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

QTableView / QSortFilterProxyModel Drag/Drop not respecting column/row order of view

    XMLWordPrintable

    Details

    • Platform/s:
      Windows

      Description

      Feature Request: Drag and drop within tableViews should replace data according to column/rows order in destination view (i.e. where data is dropped), not according to column/row order of underlying model.

      Please refer to the attached project and steps to reproduce the behavior.

      The expected behavior is that 

      When dragging data, QT only includes information about how the data is
      organized, not how it's visualized. If you drag a QTableView that has its
      columns swapped and drop it into another QTableView, the drop operation will
      result in the columns being applied in an incorrect order from a user's
      perspective. 

      There is a workaround that you can implement dropMimeData() to define such mappings, but the customer is expecting this to be the default behavior. 

      Not sure how feasible is this, so creating this report to get the developer team's view. 

        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:
            shmittal Shveta Mittal
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes