I suppose QTreeView::drawRow() or a custom delegate would be better place to draw such things.