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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes