mentalmushroom
20th February 2012, 09:03
Hello. I'd like to know what is the way to customize QComboBox pop-up via QSS. Namely I want to remove the corners of the pop-up area, because in my case it is rounded.
This is the code I tried:
QWidget#myParentWidget QComboBox QAbstractItemView
{
border-radius: 15px;
background-color: red;
}
It produces the result like this:
7418
Although pop-up is rounded and filled with the proper background color there is still something in the background that I can't remove.
Also I'd like to know if it is possible to apply QSS style to the items of the pop-up area. The following code doesn't work:
QWidget#myParentWidget QComboBox QAbstractItemView::item
{
border-color: green;
}
This is the code I tried:
QWidget#myParentWidget QComboBox QAbstractItemView
{
border-radius: 15px;
background-color: red;
}
It produces the result like this:
7418
Although pop-up is rounded and filled with the proper background color there is still something in the background that I can't remove.
Also I'd like to know if it is possible to apply QSS style to the items of the pop-up area. The following code doesn't work:
QWidget#myParentWidget QComboBox QAbstractItemView::item
{
border-color: green;
}