Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15.2, 6.1.2
-
None
-
Operating System: openSUSE Tumbleweed 20210810
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.13.8-1-default (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics
Memory: 30.8 GiB of RAM
Graphics Processor: AMD RENOIROperating System: openSUSE Tumbleweed 20210810 KDE Plasma Version: 5.22.80 KDE Frameworks Version: 5.85.0 Qt Version: 5.15.2 Kernel Version: 5.13.8-1-default (64-bit) Graphics Platform: X11 Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics Memory: 30.8 GiB of RAM Graphics Processor: AMD RENOIR
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.