I am working on python plugins.I used QTreeWidget to list items. [listing in qtreewidget][1] this link helped me a lot.
My code is:
valestimate=QTreeWidgetItem(str(parent_name))
for row in c.fetchall():
strval=QTreeWidgetItem(unicode(row[0]))
valestimate.addChild(strval)
self.treeWidget.addTopLevelItem((valestimate))
parent_name is name of my parent in QTreeWidget. EX: 'ACO_233' But output is :
![enter image description here][2]
If i set columncount as more then one then it is shown as:
![enter image description here][3]
How do i list full string as parent in Qtreewidget?? following this link [single character in qtreewidget][4] ..inserttoplevelitem takes list as parameter..But if i want to make any item as parent ,we cannot add list to qtreewidget type item. How do i do it??