Thank you. Unfortunately that didn't work. Neither did:
view->setPalette(palette);
QAbstractItemView *v = combo->view();
QPalette p;
p.setColor(QPalette::Base, Qt::red);
p.setColor(QPalette::Text, Qt::white);
view->setPalette(palette);
To copy to clipboard, switch view to plain text mode
I see a brief flash of the red only on the selected item. Then it goes back to the default. The menu itself (apart from the selected item) is not affected by the color choice.
I tried ::setColor with all the roles to no avail...
Any other pointers?
Thanks much.
Susan
Bookmarks