No, not really. The only thing I can think of is to take ownership of the widget, too, e.g:

Qt Code:
  1. QWidget* widget = tree->itemWidget(index, 0);
  2. widget->setParent(this);
  3. tree->insertTopLevelItem( newindex, tree->takeTopLevelItem( index ) );
  4. tree->setItemWidget(newindex, 0, widget);
To copy to clipboard, switch view to plain text mode