As far as I remember the quickest way to clear the whole table was to delete its all rows (removeRow() or removeRows()) and create them again (new QTableItem...). The number of rows and columns can be obtained with numRows() and numCols(). You can use them with clearCell() too:

Qt Code:
  1. for(int r=0;r<numRows();r++)
  2. for(int c=0;c<numCols();c++)
  3. clearCell(c,r);
To copy to clipboard, switch view to plain text mode