Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.4.2, 5.5.0, 5.6.2, 5.7.0
-
Windows 8.1 32 bit, Windows 7 Ultimate x64
-
098d87c63fb638db619808af8b86c043354f62c5 (5.8), b705fc45c454a9cecbcaa7f99e4963d94da9b86c (5.6)
Description
when writing arabic text in QLabel and setting Horizontal Size policy to Maximum ( or use a horizontal spacer besides the control) the text is clipped !
as far as I have checked, it usually happen when a text ending with "ص" or "ل" or "ف" .
sometimes that happens with English text as well, but I can't remember how.
Attacked screen shots of the problem, and the sample code I wrote to demonstrate the problem.
Edit 1:
I tried to trace the problem, looks like QFontMetrics.width(), and boundingRect() returns wrong width for the given arabic text. the values are less than the values returned from those methods back in Qt 5.2 and lower versions.
Attachments
Issue Links
- is duplicated by
-
QTBUG-57453 Arabic/Persian text is trimmed on almost all widgets
-
- Closed
-
- relates to
-
QTBUG-41450 Regression: The arabic text is truncated in Qt 5.4
-
- Closed
-