Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.9.5, 5.12.3
-
Tested with:
Qt 5.9.5 LTS on macOS Mojave 10.14.4, on CentOS 7.5.1804 with MATE and on Windows 10
Qt 5.12.3 LTS on macOS Mojave 10.14.4
-
-
75285b64ada65748f1fee3942a95b46a3f0b9d7e (qt/qtbase/5.14)
Description
If the font size for QComboxBox objects is set to a specific value on the QApplication stylesheet, the QComboBox objects which are children of QStackedWidget or QTabWidgets are not sized properly. This is more obvious on Mac than on Linux or Windows but it happens on all desktop platforms. This is not an issue for QComboBox object which are direct children of the main QWidget.
The workaround is to call app.setStyleSheet(app.styleSheet()) after the window is shown.
Please the attached archive project (qcombobox_qstackwidget_macos.tar.gz) , where the workaround is commented out in main.cxx .
OS | Tab | Tab with workaround | Stack | Stack with workaround | Normal | Normal with workaround |
---|---|---|---|---|---|---|
macOS | ||||||
Linux | ||||||
Windows |