-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.2.0, 5.9.1
-
None
I ran into a problem where Text was not being drawn in the correct position when horizontally aligned center or right. I've attached a simple QML file that reproduces the issue.
It seems like it might be related to the width changing not triggering a redraw. The workaround I am using currently involves calling doLayout() when the width of the Text changes.
Also note that when the view is instantiated, the text is not aligned center despite having a width set. Then once the text is changed and a redraw happens, it is centered from that point forward. This is why I used a multi-line text value.
- is duplicated by
-
QTBUG-45739 Text alignment issues inside ColumnLayout
-
- Closed
-