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

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

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes