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

Allow Drag and Drop between QSGItem

    XMLWordPrintable

Details

    • c825865cdd88445aa1db94cdf0da89426919acdb

    Description

      Implement a way to allow drag and drop between QSGItem. A use case would be to allow to connect two QSGItem by touching one and dragging it to the other. We should be able to take action on hover events and have access to the items where the drag started and ended.

      If I'm not mistaken, in the previous QML MouseArea component would grab the mouse and then the other items would not receive any mouse events. Maybe it doesn't need dedicated classes, just letting the developper call ungrab() on the mousearea on exiting so that other items can grab it.

      Attachments

        1. DragAndDrop.js
          4 kB
        2. DragAndDropArea.qml
          1 kB
        3. tstDragAndDrop.qml
          5 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-19747
          # Subject Branch Project Status CR V

          Activity

            People

              denexter Andrew den Exter (closed Nokia identity) (Inactive)
              rikrd Ricard Marxer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes