How to make item view render rich (html) text in Qt
I guess you can use setItemDelegate method of the treeview to setup custom painter for your treeview items. In the delegate’s paint method you can use QTextDocument to load item’s text as html and render it. Please check if an example below would work for you: treeview initialization: … // create simple model for a … Read more