Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
Qt for MCUs 2.8
-
Windows 10 22H2, Desktop 32bpp (MINGW)
-
Consumer team Sprint 2024/3.1, Consumer team Sprint 2024/3.2
Description
Code
import QtQuick Column { Rectangle { width: 200 height: 100 anchors.centerIn: parent color: "red" Text { anchors.fill: parent wrapMode: Text.Wrap horizontalAlignment: Text.AlignHCenter text: "A very long long long long long text" } } Rectangle { width: 200 height: 100 anchors.centerIn: parent color: "limegreen" Text { anchors.fill: parent wrapMode: Text.Wrap horizontalAlignment: Text.AlignHCenter text: "A very long long\nlong long long\ntext" } } }
Outcomes
- The (auto-wrapped) text in the red rectangle is left-aligned (Not Expected)
- The (manually-wrapped) text in the green rectangle is horizontally centered (Expected)