Hello forum,
I have an opengl scene as an underlay and I want to do the camera movement with the mouse move event. Simultaneously I have couple of sliders in the scene as an overlay. I am having problem to filter between these two. The slider is disabled if I am doing the following :
Code:
import QtQuick 2.2 import QtQuick.Controls 1.1 Item { id: root width: 512; height: 512 ................................ ................................ } //THE SLIDER IS SET HERE IN A GRID - omited for brevity Rectangle { id: rect color: "red" radius: 10 opacity: 0.1 border.color: "black" focus: true antialiasing: true //the rectangle element //will fill the whole layout anchors.fill: controlContainer } //SOME TESTING RELATED MOUSE AREA MouseArea { id: sceneMouseArea anchors.fill: root } }
I believe that the root mouse area is over-lapping with the other items that functions with the mouse event. Is there any example/reference that demonstrates mouse event filtering techniques where all the events are caught and call the relevant functions accordingly ?
Thanks