How to remove all cells in a pyqt4 tablewidget?
pyqt4, python
Solution
Alternatively, you can set the row and column counts:
self.table.setRowCount(0)
self.table.setColumnCount(0)
Problem
Suppose I have a pyqt4 table widget, for example: ``` self.table = QtGui.QTableWidget(3,4) ``` With `self.table.clear()` I can remove all contents of the table. However how can I delete all cells of the table, not only the content?