selection-color and selection-background-color doesn't work on an editable QComboBox.
There is a way to make it work?
I'm using the following stylesheet, but it doesn't work when QComboBox is editable.
QComboBox { selection-color: black; selection-background-color:#8FBC8F; color: black; }
Thank you.
use the pseudo-state "editable" like this:
QComboBox:editable {
selection-color: black;
selection-background-color:#8FBC8F;
color: black;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.