Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. TextInput cursor position
Forum Updated to NodeBB v4.3 + New Features

TextInput cursor position

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 441 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Max a Vadallat
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved