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?
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?
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.
Bookmarks