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

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

      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);
      

        1. main.cpp
          1 kB
        2. bug2.png
          bug2.png
          18 kB
        3. bug1.png
          bug1.png
          19 kB
        4. Bug0.png
          Bug0.png
          9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes