I have two QTreeWidgetItem that are top level. I want to make the second the parent of the first. Calling the first one's addChild(second item) shows no change. How would I accomplish this?
+1
A:
You probably have to remove the item you want to reparent first using takeItem()
, and subsequently add it as a child to the new parent item.
Ton van den Heuvel
2010-02-23 12:31:41