Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.2
-
None
-
204500b6f5133a56d32799581543fbcdd4095545
Description
The following example illustrates the issue. Without giving the text element an explicit width, the two lines of text remain aligned left.
import QtQuick 2.0 Item { width: 800; height: 640 Text { //width: 200 //uncommenting this fixes the alignment text: "Short Line\nMuch Longer Line" horizontalAlignment: Text.AlignHCenter } }