Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.9.2
-
Windows
-
1adb1ef6bab6247f5914e94380f8b05e11cb8d7e (qtbase/5.9, 15.12.2017, 5.9.4)
Description
Setting Font-style to an item in QMenu does not work unless any padding or margin property is specified. Any of the padding or margin properties (bottom, top, left, right or all of it) can be set to some value for the font-style to work.
This also applies if the italics / bold is set through a QFont set to the menu item, instead of setting it through a style sheet.
Steps to reproduce:
- Run attached sample
- Open the menu and observe the items state
- Press "does not work" button which applies the second style sheet
- EXPECTED: Items in the menu are italic
- ACTUAL: Items in the menu are back to their original state, without italic
The "this works" button applies the first style sheet, for a working use-case.