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

QQuickItem drag&drop event handlers do not have source set

    XMLWordPrintable

Details

    Description

      I've create custom QQuickItem and re-implemented

      dragEnterEvent(QDragEnterEvent *event)

      dragLeaveEvent(QDragLeaveEvent *event)

      dragMoveEvent(QDragMoveEvent *event)

      dropEvent(QDropEvent *event)

      In all the cases when I receive event the event->source() is null object. There is no way to determine which object was dropped. 

      I looked at the DropArea code and it seems it is using something called QQuickDragMimeData which is private and can not be directly used in custom QQuickItem. 

      I also checked that widgets use QDragManager to set the source for drop events. However this dropmanager is not either used in declarative.

      Please do provide a way to access source of the events if available.

       

       

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              ravila Risto Avila
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes