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

[REG: 5.9->5.15] QMenu with icons behaves differently with padding in stylesheet

XMLWordPrintable

      When background-color is set, it also clears any padding from the item. In the past this could be worked around by explicitly adding padding through stylesheet also.

      However, now it is not working anymore. If padding is set, it is put between the icon and the text.

      To reproduce, try previewing attached .ui file in Designer and open the file menu.

        1. qtbug113563.zip
          2 kB
          Joni Poikelin
        2. Image1.png
          7 kB
          rashmisi
        3. Image2.png
          7 kB
          rashmisi
        4. Image3.png
          6 kB
          rashmisi
        5. Image4.png
          7 kB
          rashmisi
        6. Image5.png
          6 kB
          rashmisi
        7. QMenu_Styling_Palette.zip
          6 kB
          rashmisi
        8. QMenu_Styling_Icons.zip
          4 kB
          Eirik Aavitsland
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            vgt Eirik Aavitsland
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes