Hi all,
After i use QSqlTableModel to get one table in database, i want to handle every row in table ,so i code as follows:
Qt Code:
  1. QSqlTableModel tableModel;
  2. tableModel->setTable(tableA);
  3. tableModel->select();
  4. int nCount = tableModel->rowCount();
  5. for(int i=0, i<nCount, i++)
  6. {
  7. // handle every row
  8. // ....
  9. }
To copy to clipboard, switch view to plain text mode 
here is my question, why the value of nCount is less than the real rows' count(Observed from database table view)? And the value is 256, could i get whole rows when the count of rows are so many like tens of thousands? Or is there any smarter idea to do the same work?
Thank you!