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

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

XMLWordPrintable

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

      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes