Details
-
Bug
-
Status: Reported
-
P2: Important
-
Resolution: Unresolved
-
5.15.2
-
None
-
None
-
Windows 10, VS 16.9.6
Description
Submenu indicators of a QMenu with styled items are drawn incorrectly if at least on item has an icon except the one with the longest text. In this case, the bounding rect of the longest item lacks the icon width because maxIconWidth of the style options is not taken into account. The overall width of the menu is finally given by the bounding box with the largest width.
I guess this is also the case for normal items without submenus.