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

Upgrade QTableWidget to allow drag and drop to rearrange rows

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: P4: Low P4: Low
    • 6.8.0
    • Some future release
    • None
    • 8e63cf282 (dev), a9e464119 (6.8)

      Currently QTableWidget allows drag and drop but it only allows you to move blocks of cells within the grid. This is not all that useful. I think a much more frequent case is that users want to rearrange rows or columns. It would be nice to add a drag and drop mode that can rearrange rows or columns. Attached find some code that leverages the existing Qt code to have drag and drop rearrange rows.

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

            dfaure_kdab David Faure
            mawiesma Martin Wiesmann (closed Nokia identity) (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes