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

[Windows] Quick TextEdit with RTL text placed into a ColumnLayout has wrong alignment

XMLWordPrintable

    • Windows
    • 58780ee99 (dev), 8ec56962b (6.5)

      Quick TextEdit with RTL text placed into a ColumnLayout has wrong alignment.

      Curious that this is platform-dependent, as it's not reproduced for me on macOS

      Sample code:

      import QtQuick
      import QtQuick.Window
      import QtQuick.Layouts
      
      Window {
          visible: true
      
          component HebrewText: TextEdit {
              readOnly: true
              text: 'שדגשגשגשגדוגמא
      בעיות יישור
      טֶקסט'
      
              Rectangle {
                  anchors.fill: parent
                  color: 'red'
                  opacity: 0.2
                  border.width: 1
              }
          }
      
          ColumnLayout {
              id: layout
              HebrewText {
              }
          }
      
          HebrewText {
              anchors {
                  top: layout.bottom
                  topMargin: 20
              }
          }
      }
      

      Actual result: text in the layout is aligned to the left

      Expected result: text in the layout is aligned to the right, so it should look as the same text outside the layout

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

            esabraha Eskil Abrahamsen Blomfeldt
            studiosus Vladimir Belyavsky
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes