Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.15.2
-
None
-
Windows 10 x64
Qt 5.15.2
Description
When drawing multi-line text with Arabic and Latin mixed character using QPainter::drawText(), Qt will render characters in the text with incorrect order.
For example:
ضثثثقققععه
Aشسيبلاتنمءط
The character 'A' will be placed after the Arabic words when rendering with QPainter::drawText()
The sample program to reproduce this issue has been attached. Run the sample program you will see the text in two places, the above one is rendered with QPainter::drawText() which is wrong, the bottom one is a QTextEdit which is correct.