Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.2.1, 6.2.2, 6.3.1
-
None
Description
The text alignment within a QPushButton doesn't respect the buttons padding anymore, if the
QPushButton::menu-indicator
is styled within its style sheet. From the box model point of view it looks like the text is not in the content box anymore but in the padding box.
- As you can see in the images, Qt 5.15.X works as expected.
- Starting with Qt 6, when the menu-indicator is styled and a menu is set onto the button, the text starts at the outer left side, regardless of the padding (which was respected in Qt 5).
Edit:
I added a different images & an updated example project to show the problem.