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. Ask Qt about the reading direction of the current language
Forum Updated to NodeBB v4.3 + New Features

Ask Qt about the reading direction of the current language

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 203 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.
  • B Offline
    B Offline
    buhtz
    wrote on last edited by
    #1

    I checked the QTranslator class but couldn't find something in there.
    I would like to determine the current reading direction (left to right / right to left) of the current active language.

    Is there a Qt-way?

    Otherwise my workaround would be to have list of known RTL languages and compare them with the current selected language.

    JonBJ 1 Reply Last reply
    0
    • B buhtz

      I checked the QTranslator class but couldn't find something in there.
      I would like to determine the current reading direction (left to right / right to left) of the current active language.

      Is there a Qt-way?

      Otherwise my workaround would be to have list of known RTL languages and compare them with the current selected language.

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

      @buhtz
      QGuiApplication::layoutDirection() ?
      Qt::LayoutDirection QLocale::textDirection() const ?

      1 Reply Last reply
      2
      • B buhtz has marked this topic as solved on

      • Login

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