Textfield + MouseArea (double click) : event propagation doesn't work perfectly



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.