Hello,

if i create a new insatance of a QSqlQueryModel (based on sqlite database) the amount of memory is not completely freed when deleting the object.

Qt Code:
  1. .
  2. ..
  3. model = new QSqlQueryModel();
  4. model->setQuery(query);
  5. while(model->canFetchMore())
  6. model->fetchMore();
  7. ..
  8. delete model;
To copy to clipboard, switch view to plain text mode 

What is the correct way to do this?