Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-30595

QMenu RightToLeft layout direction issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.1.0 Beta 1
    • 5.0.1
    • None
    • Windows 7, Linux Mint KDE 14 x64
    • 4c7881396edbb513b15f7f46af9553a3d7478dab

    Description

      1) Create a new Qt GUI Application by Qt Creator
      2) add the set QApplication layout to RightToLeft

      #include "mainwindow.h"
      #include <QApplication>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
          a.setLayoutDirection(Qt::RightToLeft);
      
          MainWindow w;
          w.show();
          
          return a.exec();
      }
      

      3) The QMenu pops-up to LeftToRight as shown in the screenshot!!!

      Attachments

        1. RTL-KDE.png
          RTL-KDE.png
          124 kB
        2. snapshot03.png
          snapshot03.png
          110 kB
        3. snapshot21.png
          snapshot21.png
          11 kB
        4. لقطة1.png
          لقطة1.png
          181 kB
        For Gerrit Dashboard: QTBUG-30595
        # Subject Branch Project Status CR V

        Activity

          People

            srutledg Shawn Rutledge
            mbnoimi Muhammad Bashir Al-Noimi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes