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