Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Question about RTL language.
coldmund last edited by
when i set my system to use RTL language(ex. arabic), strings of arabic characters or arabic+english shows collectly(from right to left), but strings without arabic characters(only alphanumeric characters) shows left-to-right. i want all the strings show right-to-left. Is there any solution?
soroush last edited by
If you are talking about directon (not alignment) your need seems not corresponding to bidirectionality specification of unicode See "Annex #9":http://www.unicode.org/reports/tr9/
Anyway, you can always override direction by control characters in your visual elements. That's achivable by adding control sequences :
- U+200E LEFT-TO-RIGHT MARK
- U+200F RIGHT-TO-LEFT MARK
- U+202A LEFT-TO-RIGHT EMBEDDING
- U+202B RIGHT-TO-LEFT EMBEDDING
- U+202E RIGHT-TO-LEFT OVERRIDE
If you are using an i|18n system, you might add override characters to your Arabic strings. For alignment.
I have no general solution