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

Drag-and-dropping between items with spacing in QListWidget drops item to bottom

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.3.1
    • Widgets: Itemviews
    • None
    • macOS, Windows

      In a QListWidget with dragDropMode set to QAbstractItemView::InternalMove, items can be drag-and-dropped up and down freely. However, when you give the widget a spacing, an item dragged onto the area where the spacing is (which can be large depending on what you set it to) will get dropped to the bottom of the list as if it was dragged onto the empty area of the widget below the items.

      It should rather end up between the items where it's dropped.

       

      Sample project and demonstration video attached.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            gxalpha Sebastian Beckmann
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes