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

Arabic letters break vertical alignment of TextInput

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.2, 6.8.0 RC
    • None
    • Linux/X11

    Description

      Adding arabic text to a TextInput breaks its vertical alignment:

      • The text jumps to a higher position
      • The space/margin between the border of the control and the selected text highlight is larger
      • The cursor is not aligned with the selected text highlight

      This can be shown with (I used TextField for convenience , but TextInput show the same behaviour):

      import QtQuick
      import QtQuick.Controls
      
      ApplicationWindow {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          Row {
              TextField {
                  text: "Abcب"
                  height: 64
                  verticalAlignment: TextEdit.AlignBottom
              }
              TextField {
                  text: "Abc"
                  height: 64
                  verticalAlignment: TextEdit.AlignBottom
              }
          }
      }
      
      

      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
            bterrier Benjamin Terrier
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes