QItemDelegate does almost all that I want it to. It's paint just doesn't display html correctly. But the rest of the paint method is amazing and is something I want to use. How do I go about using all of it's paint method besides the part where is prints text?

I've already tried giving it QModelIndex() instead of the real index, then just doing my custom painting of a QTextDocument, but then it doesn't display background colors correctly. Is there some way for me to use all of QItemDelegate::paint besides the part where it prints out text?

Bonus Points! Is there something that exists already to print out html that also handles special cases (selected, out of focus, exc) so I don't also have to handle all of that myself?