i added two items in a qcombobox with a separator
addItem("New");
addItem("Delete");
insertSeparator(2);
in order to highlight the selection of item with different style i used QLIstView for the QComboBox view with the stylesheet as
QListView * listView = new QListView(this);
this->setView(listView);
listView->setStyleSheet("QListView::item { \
color: black; \
background: white; } \
QListView::item:selected { \
color: white; \
background-color: #0093D6 \
} \
");
now the problem is the separator is not visible at all .. it is showing a empty white space between the items . I'm not good with stylesheets so I don't have much clear idea about how to make a new stylesheet for the separator ..