A sorry, I didn't notice that he wants different colors for different nodes of tree (my fault).
So he have to deliver own delegate like you said.
anyway it still quite simple. Subclass QStyledItemDelegate and override paint method like that:
QStyledItemDelegate::paint(painter, newOption, index);
QStyledItemDelegate::paint(painter, option, index);
To copy to clipboard, switch view to plain text mode