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?
def contextActionRemove(self):
item = self.parent.ui.tree_playlist.currentItem();
self.parent.ui.tree_playlist.removeItemWidget(item, 0)
def contextActionRemove(self):
item = self.parent.ui.tree_playlist.currentItem();
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!
Bookmarks