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

Text horizontalAlignment is not reversed when LayoutMirroring is enabled unless explicitly set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.2, 6.1.2
    • None

    Description

      By default, horizontalAlignment is set to Text.AlignLeft. However, unless you set horizontalAlignment: Text.AlignLeft explicitly in QML, the text will not be aligned right when LayoutMirroring is enabled.

      The attached test code is for Qt 6, but will also work for Qt 5 if you set the version of the imported QtQuick module.

      Attachments

        1. texthalignbug.qml
          0.2 kB
          Noah Davis
        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
            ndavis Noah Davis
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes