import QtQuick 2.12 import QtQuick.Controls 2.5 Window { width: 200 height: 200 visible: true color: "blue" MouseArea { anchors.fill: parent onPressed: popup1.open() Popup { id: popup1 width: 150 height: 150 modal: true background: Rectangle { anchors.fill: parent color: "red" } MouseArea { anchors.fill: parent onWheel: console.log( "wheel from red" ) onPressed: popup2.open() Popup { id: popup2 width: 100 height: 100 background: Rectangle { anchors.fill: parent color: "green" } MouseArea { anchors.fill: parent onPressed: console.log( "mouse press from green" ) onWheel: console.log( "wheel from green" ) } } } } } }