Hi,
I want to highlight every other row in a QTreeView by changing the background colour for every ohter row.
|one |
|two|
|three|
|four|
I have done this in qt3 by reimplementing
QListViewItem
::paintCell( QPainter *p,
const QColorGroup
&cg,
int column, int width, int alignment )
QListViewItem::paintCell( QPainter *p, const QColorGroup &cg,
int column, int width, int alignment )
To copy to clipboard, switch view to plain text mode
I have a custom model which I feed into the view.
I just don't find an appropriate pointer where to do it.
In repaint of the view?
Or do I have to use a custom style?
Thanks,
Moppel
Bookmarks