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

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.0.0, 5.12
    • Fix Version/s: None
    • Component/s: GUI: Drag and Drop
    • Labels:
      None
    • Environment:
      Qt 5.12, windows 10, mingw compiler.
    • Platform/s:
      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

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            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