Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.1.1, 5.2.0
-
None
-
Ubuntu 13.10, Windows 7
-
bd3c82f8db4391fc1d6d3338827356143fd598dd (qt/qtbase/5.14)
Description
QTextLayout carefully considers soft hyphens to understand where to wrap the line. But their size is considered zero at alignment stage so hyphens brakes out of text boundaries with Qt::AlignJustify.
Example qml file and it's screenshot produced by qmlscene are attached.
Behavior is reproduced even if QTextLayout is used directly, so it's not QTextDocument's bug.