Hey gang,
I'm using Qt 4.8.0 and I have a QTreeview object where I am trying to set the selected color. I've been reading docs and I assume this is the Hightlighted color. Stylesheets are not working and the following code is also not working:
QPalette p = ui._librariesView->palette();
p.setColor(QPalette::HighlightedText, Qt::red);
p.setColor(QPalette::Highlight, Qt::red);
ui._librariesView->setPalette(p);
please help.
Thanks
/Loren