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

Drag and Drop from outside the application : move file in the recycle bin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 5.5.1
    • None
    • Windows 10

    Description

      Drag and drop using URL as mimeData has a serious issue, if you move a file using drag and drop from outside the application into one QListWidget the file is moved into recycle bin, copy doesn't have the issue apparently.
      Apparently only happens if an item with the same filename is in the list.
      No viable workaround found to avoid this issue.
      The only way is to ignore in dragMoveEvent but then it's not possible to handle the case of drop of the same file.
      EDIT: I investigate the issue but apparently if the file has the same filename but not on a same URL listed it's ok, so it only moves to recycle bin if you move one file from outside of the application which is the same path of one item listed.
      EDIT2: Apparently it only happens when the base class is not called in dropEvent and the URL is already listed in the list.

      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
            alundra Michael Ségura
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes