qt - QTreeWidgetItem display html -
i have qtreewidgetitem display formatted html.(pyqt) has managed this?
htmlstring = r"<b>boldtext:</b>somevalue" item = qtgui.qtreewidgetitem( item, [htmlstring], 0)
any appreciated!
to answer own question: created widget containing qtextedit , used sethtml() display htmlstring added widget tree:
anitem = qtgui.qtreewidgetitem( parentwidgt ) parentwidgt.setitemwidget(anitem, 0, widgcontainingtextedit)
cheers!
Comments
Post a Comment