Ok i found the solution.
I just set the parameter mouseEnabled:false of my MultiPointTouchArea.
Qt doc =>
"By default, the mouse will be handled the same way as a single touch point, and items under the touch area will not receive mouse events because the touch area is handling them. But if the mouseEnabled property is set to false, it becomes transparent to mouse events so that another mouse-sensitive Item (such as a MouseArea) can be used to handle mouse interaction separately."
My bad, didnt read it correctly at first time :D
And it's works with the maskedmousearea, nice !
here is the sample :
MultiPointTouchArea {
anchors.fill: parent
maximumTouchPoints:10;
mouseEnabled:false /*here it is, epic ! */
Image{
width: 300; height: 300
id: myimage; source: "img/img.png"
MaskedMouseArea {
anchors.fill: parent
alphaThreshold: 0.4
maskSource: myimage.source
onPressed: {
Console.log("win !")
}
}
}
}
-i can know have toucharea with shape of images alpha channels => win
-i can get rid of the childAt function => win
-i can proceed to the next step of my work => win