Qt 6.11 is out! See what's new in the release
blog
Textfield + MouseArea (double click) : event propagation doesn't work perfectly
QML and Qt Quick
1
Posts
1
Posters
961
Views
1
Watching
-
Hi there,
I wonder whether this a bug or I miss something...
I need to intercept double click events on a textfield without interfering with the normal behaviour of the textfield.
As textfield doesn't handle double click by default, I use a mousearea, here is my code :@TextField {
x:10; y: 10;
MouseArea {
anchors.fill: parent;
propagateComposedEvents : true
onDoubleClicked: {
console.log('double clicked');
}
}@The double clicked is handled ok, the simple click is propagated to the textfield BUT it doesn't handle the cursor position. I lose the possibility to change cursor position by mouse...
Any thoughts ?
Thanks