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

TextInput selects characters after insert() and remove().

    XMLWordPrintable

Details

    • Linux/X11, Windows
    • 04b0d1b217229494e317ab0dfcd0b15436d67f70 (qt/qtdeclarative/5.13)

    Description

      import QtQuick 2.12
      
      Item {
          id: root
          width: 600
          height: 300
      
          TextInput {
              id: qwe
              width: 500
              height: 100
              font.pixelSize: 50
              text: "123456"
              focus: true
          }
      
          Timer {
              running: true
              interval: 500
              onTriggered: {
                  qwe.insert(0, "***")
                  qwe.remove(0, 3)
              }
          }
      }
      

      "123" will be selected after 500 ms

      Attachments

        Issue Links

          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
              evgeniy_kolchin Kolchin Evgeny
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes