TextInput cursor position



  • I'm using TextInput.
    Setting cursor position by mouse click seems to work fine. (Selection is off, selectByMouse: false)
    However when holding down the mouse and moving over the TextInput the cursor position is not updated.

    I checked the source code: qquicktextinput.cpp

    void QQuickTextInput::mouseMoveEvent(QMouseEvent *event)
    {
    Q_D(QQuickTextInput);

    if (d->selectPressed) {
        // ...
    } else {
        QQuickImplicitSizeItem::mouseMoveEvent(event);
    }
    

    }

    It seems there is no relevant implementation for that. Wondering why ; )

    Anyone know a workaround for this?

    Thanks!


Log in to reply
 

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