Quote Originally Posted by wysota View Post
Leave the model alone, trying to do it there is a wrong path. All you need is to modify the delegate - it knows if it's painting a "base" or "alternate base" colour through the use of QStyleOptionViewItemV2, so you can do all the background painting you want there.
Hi wysota,

Many thanks for the insightful reply. Yes that is what I should do. I only have 4.3 right now but an upgrade to 4.4 would be most useful as I could then use a QStyledItemDelegate and call initStyleOption which would initialize all those useful properties like the 'Alternate' feature.

barnaby.