Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Arabic string displaying on QLabel and QPushtbuon is different in Qt



  • There is one Arabic string as: اختبار عرض اللغة العربية في QTE. The displaying on QLabel and QPushButton is different with same interface setText(). See picture below:

    c2514f83-0772-456c-b894-1a8331d3912d-image.png

    Anyone can help on why the displaying behavior is different?
    Thanks.



  • @Jared-Zhou
    I don't know how it works/what you can do about it, but just to say I assume this is to do with RTL reading/display of the Arabic string, and it somehow being detected as containing some non-Arabic characters and (unfortunate) different handling between QLabel versus QPushButton. I assume if you replace that QTE. with some Arabic characters they both display the same, correct way.


Log in to reply