Important: Please read the 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:


    Anyone can help on why the displaying behavior is different?

  • @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