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

Upgrade QTableWidget to allow drag and drop to rearrange rows

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        1. TableWidgets.zip
          4 kB
          Martin Wiesmann (closed Nokia identity)

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes