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

selecting multiple items(dragable and non-dragable) causing the non-dragable items to also be removed on drop.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.0.0, 5.12
    • GUI: Drag and Drop
    • None
    • Qt 5.12, windows 10, mingw compiler.
    • All

    Description

      Note: tested on Qt 5.12, windows 10. Might affect other versions and platforms

      Qt seems not to not honor Qt::ItemIsDragEnabled if multiple items are selected ( a mix of ItemIsDragEnabled  and not, items) 
      and after the drop ( which only shows the correct ones) , it seems to delete/remove
      all of selection even some were not dropped/DragEnabled. 

      The Drag icons correctly shows only the Qt::ItemIsDragEnabled items but after drop all is removed.

      Test sample that shows this.

      https://www.dropbox.com/s/urt1pwfvqs3xmbj/DragDropFail.zip?dl=0

      Steps to reproduce:

      Place 2 QListWidgets on form.

      Add a mix of items having Qt::ItemIsDragEnabled on only some of them.

      Select all of them and drag to the other QListWidget.

      forum post

      https://forum.qt.io/topic/99024/select-multiple-items-dragable-and-non-dragable-causing-the-non-dragable-items-to-disappear

       

      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
            mrjj Mr. Jonas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes