Hi! How do I change the color of the selection of a QListWidget? I came up with this but it doesn't work:
Qt Code:
skinsListView->setPalette(p);To copy to clipboard, switch view to plain text mode
Hi! How do I change the color of the selection of a QListWidget? I came up with this but it doesn't work:
Qt Code:
skinsListView->setPalette(p);To copy to clipboard, switch view to plain text mode
try QListWidgetItem::setBackground()
http://doc.trolltech.com/4.6/qlistwi...#setBackground
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks