Hello,

I have in my PyQT4 application a QTreeWidget. But I can't find a function to remove the current QTreeWidgetItem. I've found the function QTreeWidget::removeItemWidget ( QTreeWidgetItem * item, int column ), but when I try this function, nothing seems to happening. I guess removeItemWidget is not to remove a total treeWidgetItem?

Qt Code:
  1. def contextActionRemove(self):
  2. item = self.parent.ui.tree_playlist.currentItem();
  3. self.parent.ui.tree_playlist.removeItemWidget(item, 0)
To copy to clipboard, switch view to plain text mode 

How can I remove a QTreeWidgetItem?

Thanks a lot!