Delete a row from SqlTableModel
-
Hi,
I have a QSqlTableModel* sqlTableModel;
In a function i have done sqlTableModel->removeRows(rowNumber,1);
But when i print the number of rows in QSqlTableModel using sqlTableModel->rowCounts() i am getting the same number of rows before and after sqlTableModel->removeRows(rowNumber,1); .Its not deleting the rows i think. May i know why is it?
Deepak
-
Check the value of rowNumber, and what if the return value of the function removeRows()?
-
Hi,
I have an SqlTableModel. If i change a cell in the sqlTableModel and try to delete the row where change has been made i am not able to delete the row. May i know why is it not deleting?
Deepak