I am trying to build a hierarchical treeview, I need to reparent some of these items in pymel code, much the same as would happen if I middle mouse dragged them onto each other.
I could delete the item and use the addItem flag to add it back with a parent, however if the child node has any children of its own, they will be lost.
There doesn’t seem to be a “reparentItem” flag for treeviews.