[Interest] Qt 4.8 arabic rendering problem

Ender Erel ender.erel at icterra.com
Mon Dec 29 13:50:16 CET 2014

Hi Everyone,

I am trying to render some arabic text, mixed with latin characters, on a QLabel. When the text starts with arabic characters and latin characters are in the middle of the text, the text is aligned to the right. But when the text begins with a latin character, the text is aligned to the left, even though the rest of the text is in arabic.

I've tried using QApplication::setLayout(Qt::RightToLeft) and translating "LTR" to "RTL", but neither solved the problem. The only way I found was to use QLabel:: setAlignment(Qt::AlignRight) manually, which I am trying to avoid.

I'm sure there's something that I am missing, so I'd be glad if anyone could help.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141229/9a741a2c/attachment.html>

More information about the Interest mailing list