Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
Qt for MCUs 2.8
-
Windows 10 22H2, Desktop 32bpp (MINGW)
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)