How to set font style on the first item of a QComboBox?
-
13-11-2019 - |
Question
I would to set the font style of first item on a QComboBox. I'm using the Qt framework. How can I do that?
Solution
Problem solved.
combo.setItemData(rowIndex, QVariant(myCustomFont), Qt.FontRole)
I'm using PyQt
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow