Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-117101

Unexpected cursor behaviour when modifying input to textfields

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.5
    • None
    • Ubuntu 22.04 with qmake 3.1 and QT 5.15
    • Linux/X11

    Description

      When the text of a LineEdit is modified via QObject::connect(LineEdit, QLineEdit::textEdited, this, someFunction) and in someFunction:

      LineEdit->setText(text)

      is called the cursor always jumps to the end, instead of staying in place after the first time something is typed. A minimal version is attached.

      Attachments

        1. qt_bug.zip
          1 kB
          Patrick Leibersperger
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            patrick-lbp Patrick Leibersperger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes