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

Wrong aligenment for right to left languages in the main menu with Windows 11

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.7.2, 6.8.0 FF
    • 5.15.2, 6.5, 6.7.0
    • GUI: Text handling
    • None
    • All
    • 5ea248155 (dev), 64984f66a (6.7)

    Description

      This bug is only present with Qt 6.7.0 (or higher?). It work fine with older Qt versions.

      It is only present on Windows 11. It work fine with Windows 10 and other operating systems.

      This bug is only present if you start the application with the default Qt style. It work fine if you start the application for example with the fusion style.

      /edit Christian Ehrlicher:
      As my comment and reproducer shows it has not much to do with the new windows11 style - it just reveals a bug which was there already since ages. QWidget::render() does not correctly set the layout direction from the current widget to the painter used for rendering.

       

      If you have a Qt application with a right to left languarge, then the aligment of strings in the main menu is wrong. It is left alignet instead of right.

       

      Attachments

        1. bug.png
          51 kB
          Volker Dirr
        2. fet-6.19.4-minimal-Arabic-bug.tar.bz2
          719 kB
          Liviu Lalescu
        3. real.png
          1 kB
          Christian Ehrlicher
        4. rendered.png
          1 kB
          Christian Ehrlicher
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            chehrlic Christian Ehrlicher
            v_dirr Volker Dirr
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change