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

Drops from external source are ignored in Qt 5, work in Qt 4.8.2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.0.0 Beta 1
    • Fix Version/s: None
    • Component/s: GUI: Drag and Drop
    • Labels:
      None
    • Environment:
      Fedora 17; qt5.0/beta-snapshots/2012-08-12_19-00-47/qt-linux-opensource-5.0.0-beta1-offline-x86_64-ubuntu1204.run

      Description

      When an item is dragged from outside of application (in this instance: a file from system file explorer):

      QDragEnterEvent::possibleActions() returns non-empty flag
      QDragMoveEvent::possibleActions() returns non-empty flag
      QDropEvent::possibleActions() returns an empty flag and the event is ignored

      The above is working as expected in Qt 4.8.2 where QDropEvent::possibleActions() returns non-empty flags and the event is then served to model->dropMimeData().

      Example included.

      --------------------------------------------

      Seems to work the same way for every descendant of QAbstractItemView. xcb packages on my system (from `yum list installed | grep xcb`):

      libxcb.i686 1.8.1-1.fc17
      libxcb.x86_64 1.8.1-1.fc17
      libxcb-devel.x86_64 1.8.1-1.fc17
      xcb-util.x86_64 0.3.8-2.fc17
      xcb-util-devel.x86_64 0.3.8-2.fc17
      xcb-util-image.x86_64 0.3.8-3.fc17
      xcb-util-image-devel.x86_64 0.3.8-3.fc17
      xcb-util-keysyms.x86_64 0.3.8-3.fc17
      xcb-util-keysyms-devel.x86_64 0.3.8-3.fc17
      xcb-util-renderutil.x86_64 0.3.8-1.fc17
      xcb-util-renderutil-devel.x86_64 0.3.8-1.fc17
      xcb-util-wm.x86_64 0.3.8-2.fc17
      xcb-util-wm-devel.x86_64 0.3.8-2.fc17

        Attachments

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

          Activity

            People

            Assignee:
            paeglis Gatis Paeglis
            Reporter:
            kondziu Konrad Zemek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes