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

TextInput jumping when multi-line

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.2
    • Quick: Other
    • None

    Description

      Test code:

      import QtQuick
      
      Window {
          id: win
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          //TextInput {
          TextEdit {
              id: input
              color: "red"
              text: "சென்றதால் சென்றதால் சென்றதால் சென்றதால் சென்றதால் சென்றதால்"
              width: parent.width * 0.25;
              wrapMode: Text.WrapAnywhere
              height: 40
              anchors.centerIn: parent
              focus: true
      
              onCursorPositionChanged: console.log("cursor pos: " + input.cursorPosition)
              onCursorRectangleChanged: console.log("cursor rectangle: " + input.cursorRectangle)
          }
      }
      

      change from TextEdit to TextInput. The Up and Down arrow keys are not working, but one can use Left/Right keys to move between chars and lines. When switching lines, the text jumps.

      Attachments

        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
            paeglis Gatis Paeglis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes