I have a global MouseArea mouseAreaRoot taking the whole screen to prevents actions on specific buttons when a popup is opened.
Within the QML objects below this global MouseArea, I have a nested MouseArea nestedMenuMouseArea handling the clicks on my menu.
The problem is that when I click on the menu, the mouse events are redirected to mouseAreaRoot and not nestedMenuMouseArea. This is the behaviour one would expect, since the global MouseArea covers the entire screen.
I would like to exclude nestedMenuMouseArea from the effects of mouseAreaRoot which prevents any actions on the other QML objects.
I read about the propagateComposedEvents attribute, but it only seems to work from child to parent.
I would like the opposite: detect from mouseAreaRoot a click onto nestedMenuMouseArea and dispatch the event to it in order to trigger its onClicked code.