-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.9.2
-
None
Qt 6.9.2 claims to have fixed some issues around QSpinBox height when a stylesheet is applied, but it has introduced another one; they are now too small.
Reproduction (using PySide, but I assume the bug is not python specific):
from PySide6.QtWidgets import QMainWindow, QWidget, QVBoxLayout, QSpinBox, QApplication class SpinWindow(QMainWindow): def __init__(self, parent=None): super().__init__(parent) w = QWidget(self) self.setCentralWidget(w) s1 = QSpinBox(self) s2 = QSpinBox(self) s2.setStyleSheet(" ") layout = QVBoxLayout(w) layout.addWidget(s1) layout.addWidget(s2) if __name__ == "__main__": app = QApplication() app.setStyle("fusion") sw = SpinWindow() sw.show() app.exec()
In PySide 6.9.1 (Bottom spinbox too big):
In PySide 6.9.2 (Bottom spinbox too small):
- resulted from
-
QTBUG-31602 Broken QSpinBox size calculation - content text clipping occurs
-
- Closed
-