View Full Version : [SOLVED] Unable to delete Item from QListWidget, not even clear()ing works

4th August 2015, 03:37
Here's my code and I've verified that it's hitting all the right points with the debugger:

def deleteLedItems(self):
for ledItem in self.selectedLedItems:

count = self.ledListWidget.count() # Here, even after entering above loop, count is still 1, when it should be 0

I had similar issues before with deleting rows from a QTableWidget which made me have to not use it. Hopefully that won't be the case here. Please guide me!

Oh yeah, I'm using PyQt5


Regards, -EM

Added after 18 minutes:

self.ledListWidget.clear() works, nvm!;)