import QtQuick 2.4 Item { width: 300 height: 300 MouseArea { anchors.fill: parent hoverEnabled: true } Rectangle { width: 150 height: 150 anchors.centerIn: parent color: mouseArea.containsMouse ? "#585" : "#555" MouseArea { id: mouseArea anchors.fill: parent hoverEnabled: true onContainsMouseChanged: console.log('containsMouse?', containsMouse) } } }