import QtQuick 2.0 Item { width: 200; height: 200 DropArea { id: greenDropArea x: 75; y: 75 width: 100; height: 100 Rectangle { anchors.fill: parent color: "green" } onEntered: console.debug("onEntered greenDropArea") onExited: console.debug('onExited greenDropArea') DropArea { id: blueDropArea width: 50; height: 50 Rectangle { anchors.fill: parent color: "blue" } onEntered: console.debug("onEntered blueDropArea") onExited: console.debug('onExited blueDropArea') } } Rectangle { id: redRectangle x: 10; y: 10 width: 20; height: 20 color: "red" Drag.active: dragArea.drag.active MouseArea { id: dragArea anchors.fill: parent drag.target: parent } } }