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

Need QML drag-and-drop support

    XMLWordPrintable

Details

    Description

      Currently we have to add a lot of imperative code to do proper drag and drop. It would be good to have a DragTarget element that both knows when items are being dragged over it and then when they are dropped. Say it was a puzzle game. As you drag a puzzle piece around as it goes over several DragTargets they would highlight showing you could drop the piece there. When you let go the piece can slot into place, or be rejected and move back to its original place.

      Attachments

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

        Issue Links

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

          Activity

            People

              denexter Andrew den Exter (closed Nokia identity) (Inactive)
              minshin Minjung Shin (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes