How to set font style on the first item of a QComboBox?
-
13-11-2019 - |
题
I would to set the font style of first item on a QComboBox. I'm using the Qt framework. How can I do that?
解决方案
Problem solved.
combo.setItemData(rowIndex, QVariant(myCustomFont), Qt.FontRole)
I'm using PyQt
不隶属于 StackOverflow