Skip to content Skip to sidebar Skip to footer

How To Change Font Size Of First Item In Combo Box Pyqt4

How do I change the font of the displayed item in the Combo Box. When the Combo Box displays all the different options, they are the font size I want (20). However the font size

Solution 1:

the model only handles the popup, you must use the source of the QComboBox:

font = comboBox.font()
font.setPointSize(20)
comboBox.setFont(font)

Post a Comment for "How To Change Font Size Of First Item In Combo Box Pyqt4"