I would like to have a QTreeWidgetItem display formatted html.(PyQt) Has anyone successfully managed this?
htmlString = r"<b>BoldText:</b>SomeValue"
item = QtGui.QTreeWidgetItem( item, [htmlString], 0)
Any help greatly appreciated!
I would like to have a QTreeWidgetItem display formatted html.(PyQt) Has anyone successfully managed this?
htmlString = r"<b>BoldText:</b>SomeValue"
item = QtGui.QTreeWidgetItem( item, [htmlString], 0)
Any help greatly appreciated!
to answer my own question: I created a widget containing a QTextEdit and used setHtml() to display htmlString Then added this widget to the tree:
anItem = QtGui.QTreeWidgetItem( parentWidgt )
parentWidgt.setItemWidget(anItem, 0, widgContainingTextEdit)
Cheers!