Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.0
-
None
-
Tested on MacOS 15.0.1 and Windows 11
-
-
44634c58c (dev), 905dfd391 (6.8)
Description
In Qt 6.3.2 changing the style of a QMenu with a .qss stylesheet caused the actions inside the menu to be text-aligned when mixing actions with and without icons (see qt6_3_2.png).
Switching to Qt 6.8.0 removes the alignment of actions inside the menu, causing the offset shown in qt6_8_0.png. This happens if any border or padding is specified for the QMenu::item in the stylesheet. If only a background is specified, the alignment works as in Qt 6.3.2.
I am attaching a reduced version of the Qt Menus example that was modified to show this behaviour when using Qt 6.3.2 vs Qt 6.8.2. Rightclicking anywhere inside the window will open the menu shown in the images below.
Attachments
Issue Links
- resulted from
-
QTBUG-127536 When styling a QComboBox, it always has a check-box icon even after setting the icon to none.
-
- Closed
-