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. Solved: intermediate: Mirroring application for right to left languages (e.g Arabic/Hebrew)
Forum Updated to NodeBB v4.3 + New Features

Solved: intermediate: Mirroring application for right to left languages (e.g Arabic/Hebrew)

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 737 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.
  • S Offline
    S Offline
    SherifOmran
    wrote on last edited by
    #1

    Hello guys,

    I am trying to learn how to mirror an application for internationalization with RTL languages, e.g Arabic but don't know how. Could any person guide me with an example?

    thanks

    Solved:
    @ int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);
    int value=1; // Arabic
    // 1 Translation start
    if (value==1) { qApp->setLayoutDirection(Qt::RightToLeft);}
    if (value==0) { qApp->setLayoutDirection(Qt::LeftToRight);}
    // 1 Translation End
    }
    @

    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