Originally Posted by reshma do u mean like dis... Qt Code: Switch view row=table->rowCount();for(int i=0;i<=row;i++)table->removeRow(i);row=0;queryForMem();//this takes input for the new row.. row=table->rowCount(); for(int i=0;i<=row;i++) table->removeRow(i); row=0; queryForMem();//this takes input for the new row.. To copy to clipboard, switch view to plain text mode yes Originally Posted by reshma ok.. but clear() doent remove the rows totally...it just removes the contents.. set row count to "0" after clear.
row=table->rowCount();for(int i=0;i<=row;i++)table->removeRow(i);row=0;queryForMem();//this takes input for the new row..
row=table->rowCount(); for(int i=0;i<=row;i++) table->removeRow(i); row=0; queryForMem();//this takes input for the new row..
Qt Assistant -- rocks! please, use tags [CODE] & [/CODE].
Forum Rules
Bookmarks