title: How to get last prepared and executed query using QsqlQuery ?
body: <p>I'm doing an insert:</p>
  
  <pre><code>QSqlQuery myQuery(db);
  myQuery.prepare("INSERT INTO mytable VALUES (:val1, :val2)");
  myQuery.bindValue(":val1", 1);
  myQuery.bindValue(":val2", 2);
  myQuery.exec();
  </code></pre>
  
  <p>Then I need to get the executed SQL query for logging purposes.</p>
  
  <p><code>myQuery.executedQuery()</code> returns <code>"INSERT INTO mytable VALUES (?, ?)"</code>.</p>
  
  <p>How do I to get executed query with the actual binded values that were used?</p>