Hi,
I try skin QCombobox's border with custom pictures.
The problem comes that it seems QCombobox's list view popup have somekind background drawing on drop list.
For example:
I have own custom combobox, and I try set border radius via style sheet.
----------------
CComboBox::CComboBox(QWidget *parent) : QComboBox(parent)
{
QString strStyle = "QComboBox QAbstractItemView { background-image: none; background: transparent; border: 3px solid darkgray; selection-background-color: red; border-top-right-radius: 13px; border-bottom-right-radius: 13px; border-bottom-left-radius: 13px; border-top-left-radius: 13px; };";
setStyleSheet(strStyle);
}
------------
This doesn't actually work, because it still does draw something square behind it. and I am trying to understand what is that behind the list popup....
and how can I remove or change that popup's drawing behind the popup list view.
Here is the problem with that stylesheet in picture, so you can see the square in popup listbox behind radius:
http://www.timogames.com/test/combobox_popup.png

Reply With Quote

