Well,
All my SQL querries are create in function
Qt Code:
  1. void sql_functions::exec
To copy to clipboard, switch view to plain text mode 

Querries result are store in a structure, and others function can used this value to get back request values with
Qt Code:
  1. QString result;
  2. while s_req->data.next()
  3. result = s_req->data.value(0).toString();
To copy to clipboard, switch view to plain text mode 

I only clear the querry in the begining of the function.