title: New drag-and-drop mechanism does not work as expected in Qt-Quick (Qt 5.3)
body: <p>I've tried to implement drag and drop in Qt 5.3 using the new QML types <code>Drag</code>, <code>DragEvent</code> and <code>DropArea</code>. This is the original example from the <a href="http://qt-project.org/doc/qt-5/qml-qtquick-drag.html#details" rel="noreferrer">documentation of the QML <code>Drag</code> type</a> with some small modifications:</p>
  <pre><code>import QtQuick 2.2
  
  Item {
      width: 800; height: 600
  
      DropArea {
          width: 100; height: 100; anchors.centerIn: parent
  
          Rectangle {
              anchors.fill: parent
              color: parent.containsDrag ? &quot;red&quot; : &quot;green&quot;
          }
  
          onEntered: print(&quot;entered&quot;);
          onExited: print(&quot;exited&quot;);
          onDropped: print(&quot;dropped&quot;);
      }
  
      Rectangle {
          x: 15; y: 15; width: 30; height: 30; color: &quot;blue&quot;
  
          Drag.active: dragArea.drag.active
          // Drag.dragType: Drag.Automatic
          Drag.onDragStarted: print(&quot;drag started&quot;);
          Drag.onDragFinished: print(&quot;drag finished&quot;);
  
          MouseArea {
              id: dragArea
              anchors.fill: parent
              drag.target: parent
          }
      }
  }
  </code></pre>
  <p><strong>Expected behaviour</strong>: The small blue rectangle (drag target) can be dragged around with the mouse. If dragged over the larger green rectangle in the center of the window, this rectangle turns red and back to green when leaving. In addition, the signals <em>dragStarted</em>, <em>entered</em>, <em>exited</em>, <em>dropped</em> and <em>dragFinished</em> are emitted in time and the corresponding signal handlers print out their messages.</p>
  <p><strong>Experienced behaviour</strong>:</p>
  <p>Depends on <code>Drag.dragType</code> (see commented line above):</p>
  <ol>
  <li><p><code>Drag.dragType</code> is NOT set (default is <code>Drag.Internal</code>):</p>
  <p>Drag and drop works as described, but only the signals <em>entered</em>  and <em>exited</em> are emitted. The other signals (<em>dragStarted</em>, <em>dragFinished</em> and <em>dropped</em>) are suppressed. So there is no way to react to the drop in the <code>DropArea</code>.</p>
  </li>
  <li><p><code>Drag.dragType</code> is set to <code>Drag.Automatic</code>:</p>
  <p>All of the signals are emitted now, but the blue rectangle (drag target) does not move with the mouse. Instead, the mouse cursor changes its shape to visualize possible drop targets. After the mouse has been released, the blue rectangle jumps to the latest mouse position.</p>
  </li>
  </ol>
  <p>Neither of these two variants are pleasing. How can I get all signals and still be able to drag around the drag target? Unfortunately the documentation is everything but clear about drag-and-drop in QML, especially about the ominous <code>Drag.dragType</code>.</p>