Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
5.14.0, 5.15.2
-
None
-
Windows 10 64 Bit
-
-
afce2b528ce30e19af618b077e3f184cf290fa81 2614347ab8aa0ec0b1ea8f383ae795cfdb6ae2ac (qt/qtbase/5.15)
Description
I'm repopening this bug as it seems it still happens in latest 5.14
A QSpinBox/QDoubleSpinbox has a different (smaller) size as soon as we set a stylesheet on one of its parents.
This is verified with windowsvista and fusion styles
I attached a very simple .ui in order to reproduce this
------ old issue for reference: -------------------------------------------------------------
https://bugreports.qt.io/browse/QTBUG-31602
Qt 5.1.0 RC1 has a serious bug that affects height calculation of QSpinBoxes if stylesheets are used. The attached image Qt5.1.0-rc1-20130606.png shows this issue (vertical size policy used for spin boxes in this gui: fixed) - the spin box height is too small for the content and text clipping occurs.
The picture Qt5.0.2-20130606.png shows the same application compiled with Qt 5.0.2. Also with Qt 4.8.4 and older version this problem does not exist. So it is a new bug related to Qt 5.1.0 RC1.
The last picture Qt5.10-rc1-20130606.png shows the application if the stylesheet file has been removed. The spin boxex look o.k. with the default Windows style - so the issue seems to be related to the stylesheet style.
Other widgets, like i.e. QLineEdit to not show this issue so to summarize the issue is related to:
- QSpinBox
- stylesheet style
- Qt 5.1.0 RC 1 (qt-windows-opensource-5.1.0-rc1-mingw48_opengl-x86-offline-2013-06-02-48.exe)
The bug is quite serious because it affects all spin boxes in our application and makes Qt 5.1.0 unusable for us.
Attachments
Issue Links
- depends on
-
QTBUG-31602 Broken QSpinBox size calculation - content text clipping occurs
- Closed
- links to
Gerrit Reviews
For Gerrit Dashboard: QTBUG-80814 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
284929,2 | Fix QSpinbox default width | 5.15 | qt/qtbase | Status: MERGED | +2 | 0 |