[Development] Nested Mousearea don't pass events
Matteo Brichese
mbrichese at came.it
Mon May 20 14:36:50 CEST 2013
Hi everyone, I'm having some issue on passing the right event from a mousearea to another.
This is a sample of my code:
import QtQuick 2.0
Rectangle {
width: 1024
height: 768
MouseArea {
anchors.fill: parent;
onClicked: console.log("Click")
}
MouseArea {
anchors.fill: parent;
onDoubleClicked: console.log("Double Click")
}
}
I can only see logs of the double click.
I was hoping that if I single click the last mousearea the event passed to the second one, but it don't work, is that a bug?
I'm using Qt5.0.2
Regards
---
Matteo Brichese
Software Engineer
mbrichese at came.it
Came Cancelli Automatici S.p.A.
www.came.com
More information about the Development
mailing list