import QtQuick 2.2 import QtQuick.Controls 1.1 ApplicationWindow { visible: true width: 2048/2 height: 1536/2 Rectangle { anchors.fill: parent MouseArea { anchors.fill: parent drag.target: test drag.axis: "XAxis" drag.filterChildren: true Rectangle { id: test x: 30; y: 30 width: 300; height: 240 color: "lightsteelblue" Rectangle { color: "yellow" x: 50; y : 50 width: 100; height: 100 MouseArea { anchors.fill: parent onClicked: console.log("Clicked") } } } } } }