How to make right-to-left language (eg.Arabic) characters behave like left-to-right languages do in qt?

穿精又带淫゛_ 提交于 2019-12-06 22:10:38
waterd

Unicode provides Directional Formatting Characters,and Qt supports it well.The idea comes from @VahidN.My problem is solved partly via this way,now it display bidirection string properly.

QString(QChar(0x200E))+strText; //LRM
QString(QChar(0x202D)) + strText + QString(QChar(0x202C)); //LRO...PDF

Before this question I answered another one,which maybe helpful for finding your own solution.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!