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

QGuiApplication::setLayoutDirection does not change the window to RTL

XMLWordPrintable

    • Windows
    • 5ed4c2320 (dev), d43b0db12 (tqtc/lts-6.2), c674139b1 (6.6), 82e4b24dd (6.5)

      Qt Support was contacted by an user that was using workaround to active RTL for Qt Quick Application window which caused for example Combobox scrolling not to work correctly.

      According to https://doc.qt.io/qt-6/qtquick-positioning-righttoleft.html#default-layout-direction the RTL window should be possible to achieve via:

      QGuiApplication app(argc, argv);
      app.setLayoutDirection(Qt::RightToLeft); 

      But this has not worked in tests.

      The window controls do not setup like in example picture "WantedWindowControls".

        For Gerrit Dashboard: QTBUG-113497
        # Subject Branch Project Status CR V

            mitch_curtis Mitch Curtis
            tero.pelkonen Tero Pelkonen
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: