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

Details

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes