PDA

View Full Version : QListView Line Color



fruzzo
9th May 2008, 09:47
I want change dinamically the foreground text color of all columns of a QListView line...My idea is subclassing QListViewItem and overload the paintcell function.... but is there a more simple way to do this without subclassing?

wysota
9th May 2008, 10:42
No, you have to subclass and override paintCell(). You could first try by changing the palette role of the listview responsible for the foreground (QColorGroup::Text I suppose), but I'm not sure it will work.