-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.8.3
When adding a QMenu to a QPushButton, Qt displays a small down-pointing arrow on the right side of the button (depending on the style/theme).
If a stylesheet is used to set a border on the button, the arrow changes its position and size unexpectedly.
This issue can be reproduced with the WindowsVista style.
Steps to reproduce:
- Open the attached example project.
- Build and run it.
- Observe the two buttons:
-
- pushButton1 has a border set via stylesheet.
-
- pushButton2 does not.
- Notice that the menu arrow for pushButton1 is shifted and resized compared to pushButton2.
Expected result:
The arrow icon should remain consistent in position and size regardless of whether a border is set via stylesheet.
Actual result:
When a border is applied via stylesheet, the arrow shifts and changes size. (See attached screenshot, made with WindowsVista style.)
For Gerrit Dashboard: QTBUG-139957 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
682751,3 | Align size and position for a PushButtonMenuIndicator to other styles | dev | qt/qtbase | Status: NEW | 0 | 0 |