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

A bug in menu item text alignment in right to left direction when an icon and font or background image has been set through QSS

    XMLWordPrintable

Details

    • Windows
    • 0736e050cb0f82ca445e954e1db631f1dd1de473 (qt/qtbase/5.12)

    Description

      This bug appeared after this commit:

      http://code.qt.io/cgit/qt/qtbase.git/commit/src/widgets/styles/qstylesheetstyle.cpp?h=dev&id=aa1bc47942e2062dc7fad3e139bb4ceecc74f947

       I think in the above link there is no need to this line in RTL mode:

      textRect.setRight(textRect.right() - checkableOffset - iconOffset);
      

      Attachments

        1. main.cpp
          1 kB
          hassan deldar
        2. bug1.png
          19 kB
          hassan deldar
        3. bug2.png
          18 kB
          hassan deldar
        4. Bug0.png
          9 kB
          hassan deldar

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              chehrlic Christian Ehrlicher
              hdeldar hassan deldar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes