Issue
I'm using the latest version of Qt Designer to make a PyQt app. I can't find a way to change the font color of the items in the dropdown. As you can see from the image bellow the text is not easy to see.
This is my style sheet (QComboBox:items is not working)
Is it possible to change the color of the items in the dropdown?
Solution
The QComboBox is kind of like a QLineEdit(Active Selection), QPushButton(Down Arrow) and a QListView(Drop Down List) all together to make the QComboBox.
Within the css for the QComboBox you can call out these other PyQt objects and style them.
QComboBox{
color: rgb(110,209,255);
}
QComboBox:items{
color: rgb(110,209,255);
}
QListView{
color: rgb(110,209,255);;
}
Try adding the QListView css when you're setting the style sheet of the QComboBox and that should fix your issue.
Answered By - Andew
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.