#include "fullquery.h" QString fullQuery(const QSqlQuery& query) { QString str = query.lastQuery(); QMapIterator it(query.boundValues()); while (it.hasNext()) { it.next(); str.replace(it.key(),it.value().toString()); } return str; }