[Qt-interest] How to render basic HTML in QTreeView cells?
Paul Colby
qt at colby.id.au
Tue Sep 29 01:48:28 CEST 2009
Hi,
I want to use Qt's basic HTML support within some QTreeView cells, and
I'm trying to figure out the best / right way to do it.
I've worked out that using QTreeView:setIndexWidget() with a widget
that supports HTML text (eg QLabel, QTextEdit, etc) works - albeit
with a number of issues (that are hopefully solvable).
However, I'm also thinking that it might be better to simply override
QStyledItemDelegate::paint() to paint HTML text directly, but I can't
see how to paint HTML text there.
Any pointers or suggestions re the best / right approach would be
really appreciated! :)
Thanks.
paul.
--
http://colby.id.au
More information about the Qt-interest-old
mailing list