i'm using python and Qt4.i created a qlistwidget and added some elements like this:
Code:
self.listWidget = QtGui.QListWidget()
shares = []
shares = open('/etc/exports', 'r')
for item in shares:
if not re.search('^#', item):
self.listWidget.addItem(item)
i could retrieve the current row :
Code:
curRow = self.listWidget.currentRow()
but i can't remove it from the list.i searched the Qt4 library and there is no method for doing so.is there ant way to remove an item from a qlistwidget ?