If I put a MouseArea
on a QML element, then MouseArea
will steal all mouse events.
Thus, TextEdit
will be uneditable and unselectable.
TextEdit {
// some properties
MouseArea {
// some properties
onClicked: { /* do something */ }
}
}
Is there a way to solve it?
By the way, if I put a large MouseArea
on another MouseArea
, larger MouseArea
will steal all mouse events. How do I solved it? I think passing on mouse events manually can solve that, but how to do it?
mouse.accepted = false
has no effect (searchMouseArea
docs forhas no effect
to find them all). – Mcmahon