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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -