문제

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top