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

TextArea and ScrollView, not show cursor at end of line.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.12.9
    • Quick: Controls 2
    • None
    • WIN10/64bit/qt5.12.9/vs2017
    • Windows

    Description

      if textarea some line full, keep input by keyboard. the cursor not show, it should be end of line.

      here is test code:

      import QtQuick 2.12
      import QtQuick.Window 2.12
      import QtQuick.Controls 2.12
      import QtQuick.Layouts 1.12
      
      Window {
          id: window
          visible: true
          width: 250
          height: 250
      
          title: qsTr("Hello World")
      
          ScrollView {
              anchors.fill: parent
              background: Rectangle {
                  color: "#ff0000"
              }
              TextArea {
                  selectByMouse:true
                  text: "...."
              }
          }
      }
      

      how to avoid it? i want it like QPlainEditText,

      Attachments

        1. 1.png
          1.png
          8 kB
        2. linux.png
          linux.png
          4 kB
        3. Screen Shot 2020-08-10 at 10.26.49.png
          Screen Shot 2020-08-10 at 10.26.49.png
          168 kB
        4. Screen Shot 2020-08-10 at 10.51.47.png
          Screen Shot 2020-08-10 at 10.51.47.png
          166 kB

        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
              llcxm l l
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes