[Qt-qml] How to ignore MouseArea signals
Adriano Rezende
adriano.rezende at openbossa.org
Tue Dec 7 19:55:52 CET 2010
On Tue, Dec 7, 2010 at 4:31 AM, Halton Huo <halton.huo at intel.com> wrote:
> So my questions how to ignore the received signals to let other items to
> continue deal with those signals?
You can set enabled property to false or ignore the event on mouse press.
MouseArea {
anchors.fill: parent
onClicked: console.log("background clicked");
}
MouseArea {
anchors.fill: parent
enabled: false
//onPressed: mouse.accepted = false;
onClicked: console.log("foreground clicked");
}
Br,
Adriano
More information about the Qt-qml
mailing list