did you see notice in description of QTreeWidget::insertTopLevelItem?
If the item has already been inserted somewhere else it wont be inserted.