Originally Posted by ugluk Say I have a QListView, which can have 2 scrollbars. If I set the background style of the QListView to say, background:red, the scrollbars will likewise color red, but I'd like them to assume the system default color. Qt Code: Switch view QPalette p = view->palette();p.setColor(QPalette::Base, Qt::red);view->setPalette(p); QPalette p = view->palette(); p.setColor(QPalette::Base, Qt::red); view->setPalette(p); To copy to clipboard, switch view to plain text mode
QPalette p = view->palette();p.setColor(QPalette::Base, Qt::red);view->setPalette(p);
QPalette p = view->palette(); p.setColor(QPalette::Base, Qt::red); view->setPalette(p);
Your biological and technological distinctiveness will be added to our own. Resistance is futile. Please ask Qt related questions on the forum and not using private messages or visitor messages.
ugluk (13th October 2011)
It works! Thanks!
Forum Rules
Bookmarks