Results 1 to 2 of 2

Thread: Qmenu and Right to Left mode (text direction)

  1. #1
    Join Date
    Jun 2015
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows Android

    Unhappy Qmenu and Right to Left mode (text direction)

    18738591_2291268127765888_6338811176578053292_o.jpg
    when i change design to (right to left) the qmenu text must start from right (arabic)

    css not work {text-align: right}

    any fix

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Qmenu and Right to Left mode (text direction)

    Qt Code:
    1. menubar->setLayoutDirection(Qt::RightToLeft);
    To copy to clipboard, switch view to plain text mode 
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. Vertical QProgressBar Text Direction
    By Pyral in forum Newbie
    Replies: 7
    Last Post: 22nd January 2016, 21:36
  2. Replies: 1
    Last Post: 11th March 2014, 12:20
  3. Replies: 0
    Last Post: 24th August 2013, 11:57
  4. left alignment for pushbutton text
    By BalaQT in forum Qt Programming
    Replies: 7
    Last Post: 22nd September 2009, 09:41
  5. Replies: 2
    Last Post: 30th December 2008, 22:35

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.