Quote Originally Posted by reshma View Post
do u mean like dis...

Qt Code:
  1. row=table->rowCount();
  2. for(int i=0;i<=row;i++)
  3. table->removeRow(i);
  4. row=0;
  5. queryForMem();//this takes input for the new row..
To copy to clipboard, switch view to plain text mode 
yes

Quote Originally Posted by reshma View Post
ok.. but clear() doent remove the rows totally...it just removes the contents..
set row count to "0" after clear.