'Clear all contents from the table.'

def clear(self):

    QtGui.QTableWidget.clear(self)
    self.verticalHeadersSet = False
    self.horizontalHeadersSet = False
    self.items = []
    self.setRowCount(0)
    self.setColumnCount(0)
    self.sortModes = {}
