How to clear the items in QtableWidget code example Example: qtablewidget clear python self.table.setRowCount(0)