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. Question about RTL language.
Qt 6.11 is out! See what's new in the release blog

Question about RTL language.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.2k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    coldmund
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      soroush
      wrote on last edited by
      #2

      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

      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