Hi at all,
I'm sorry to be annoying but I'm new to qt and sometimes there is something that i really can't understand

Specifically, I've a QSQLITE DB and when i try to do an insert or update query (no problem with select query) just like this:
Qt Code:
  1. QString query = "UPDATE MovieDB SET ...etc...";
  2. QSqlQuery queryResult= QSqlQuery (db);
  3. queryResult.exec (query);
  4. std::cerr << qPrintable(queryResult.lastError().text());
  5. emit doneUp();
To copy to clipboard, switch view to plain text mode 

each time i invoke this function the time take to execute the query increase by one step.
For example if the first time I take 0.5 seconds. the second time 1.0 seconds. then 1.5 seconds, and so on...
I'm really in panic because I think there is nothing I can do to fix this...
The lag problem, unluckily, it is only a query execution fault: in fact commenting that line [ queryResult.exec (query); ] the lag disapper.
I don't know how to solve that.

I appreciate every help, and thanks is advance.

As usually sorry for my bad english

Gianluigi