Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
5.12.3, 6.4.0, 6.7.1
-
None
-
Windows 10
-
-
aa8d3f90a440575deef914916299b792105d7209 (qt/qtbase/5.13)
Description
The QTBUG-67126 was reported to prevent a QDoubleSpinBox sizeHint from becoming too small.
However, the fix uses a hard-coded constant of 20 pixels for the width of a spin up/down button (in QCommonStyle.cpp).
const int buttonWidth = (vopt->subControls & (QStyle::SC_SpinBoxUp | QStyle::SC_SpinBoxDown)) != 0 ? 20 : 0;
This causes the area reserved for the spin up/down button to become too narrow on a 4K monitor. It seems that it should get the width of a spin up/down button from the (proxy) style.
Note that this bug was not present in Qt 5.6.3.
Attachments
Issue Links
- resulted from
-
QTBUG-67126 too wide size hint of QDoubleSpinBox when setting to mode "NoButtons"
-
- Closed
-
- resulted in
-
QTBUG-79806 [REG 5.12.5 -> 5.13.2] QDoubleSpinBox sizeHint() way too wide
-
- Closed
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-75303 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
259399,11 | QAbstractSpinBox: fix some ui glitches | 5.13 | qt/qtbase | Status: MERGED | +2 | 0 |