Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Arabic string displaying on QLabel and QPushtbuon is different in Qt
Forum Updated to NodeBB v4.3 + New Features

Arabic string displaying on QLabel and QPushtbuon is different in Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 199 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jared Zhou
    wrote on last edited by
    #1

    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.

    JonBJ 1 Reply Last reply
    0
    • J Jared Zhou

      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.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved