Priority: P3: Somewhat important
Affects Version/s: 5.9.5, 5.12.3
Component/s: Widgets: Style Sheets
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
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|
|For Gerrit Dashboard: QTBUG-75846|
|287896,8||QComboBox: send font change event to popup menu when font changed||5.14||qt/qtbase||Status: MERGED||+2||0|