Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.2.0
-
None
-
MacOS Big Sur
Description
The following minimal python code illustrates the problem. It produces a QLineEdit and a QComboBox arranged vertically, with font size 40. The LineEdit is rendered correctly, whereas the ComboBox does not expand vertically; also the check mark and the text overlap. On Ubuntu however this works as expected.
import sys from PyQt6 import QtWidgets as qtw if __name__ == '__main__': app = qtw.QApplication([]) widget = qtw.QWidget() lineEdit = qtw.QLineEdit() lineEdit.setText('This is font size 40') comboBox = qtw.QComboBox() comboBox.addItem('My first item') comboBox.addItem('My second item') # Set font size. font = lineEdit.font() font.setPointSize(40) lineEdit.setFont(font) comboBox.setFont(font) # Set layout layout = qtw.QVBoxLayout() layout.addWidget(lineEdit) layout.addWidget(comboBox) widget.setLayout(layout) widget.show() sys.exit(app.exec())