Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.1, 6.9.0 Beta1
-
None
-
macOS 15.2 / latest Qt dev branch
-
-
b2cc8824e (dev), e23933e86 (6.9), 75fd0f3ba (6.8)
Description
Since commit 96adebed606cdbc73c73778917d777dc04c6e93e, setting a margin or padding (or both) on a QSpinBox using a stylesheet squishes the spinbox.
See the "broken" (using current dev branch) and "working" (current dev branch with the commit reverted) screenshots that are attached below. I also added a trivial reproducer which adds some margin and padding using a stylesheet, this seems to happen with all QSpinBoxes that have stylesheets applied.
For reference, we observe this in OBS Studio when using updated Qt (e.g. obsproject/obs-studio#11649).
Attachments
Issue Links
- resulted from
-
QTBUG-130642 Incorrect QAbstractSpinBox size hint in Windows 11 style when style sheet is set
- Closed
For Gerrit Dashboard: QTBUG-132431 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
613831,3 | QStyleSheetStyle: Honor box settings for QSpinBox | dev | qt/qtbase | Status: MERGED | +2 | 0 |
614002,2 | QStyleSheetStyle: Honor box settings for QSpinBox | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
614006,2 | QStyleSheetStyle: Honor box settings for QSpinBox | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |