Re: Removing an item from a QListView in PyQt

2006-04-11 Thread David Boddie
To summarize my previous misformatted post: removeChild() is a QScrollView method. You can call it because QListView inherits it from QScrollView, but you need to call your QListView instance's takeItem() method with the item you want to remove as the argument. Hope this helps, David -- http:/

Re: Removing an item from a QListView in PyQt

2006-04-11 Thread David Boddie
Svenn Bjerkem wrote: > In a dialog I have a QListView called referenceList. Entries are added > and deleted from this list with buttons addButton and removeButton > connected with sockets: [...] > def removeReferenceSlot(self): > print "selected has address %s" % (self.referenceList.selectedIt

Removing an item from a QListView in PyQt

2006-04-11 Thread Svenn Bjerkem
Hi, I am looking for a bit more elaboration on the problem of deleting elements from a QListsView. I know this is a tricky problem with references, but I have not been able to extract enough knowledge from the documentation to solve a specific problem: In a dialog I have a QListView called refere