What do you want to ignore?
As I understood you should use z-order of your mouse areas.
Like that
MouseArea {
id: area1
z: 1
}
MouseArea {
id: area2
z: 2
}
area2 overlaps area1.
so, i have MouseArea
This MouseArea covers a total area of my program
MouseArea {
property int startX: 0
property int dragX: pressed ? mouseX - startX : 0
property int dragThreshold: gv_.width * 0.2
id: mouseArea
anchors.fill: parent
onPressed: {
startX = mouseX
}
onReleased: {
if (dragX > dragThreshold)
gv_.onMenu();
if (dragX < 0-dragThreshold)
gv_.onMenu();
}
}
But on the background, I have a few more MouseArea
But they do not work, how to fix it?
↧