Here is a sample code from the Qt documentation:
QSqlQuery query; query.prepare("INSERT INTO person (id, forename, surname) " "VALUES (:id, :forename, :surname)"); query.bindValue(":id", 1001); query.bindValue(":forename", "Bart"); query.bindValue(":surname", "Simpson"); query.exec(); Do I need to take additional measures to filter the values that are passed to the bindValue method to protect against sql injection or Qt and / or the server (PostgreSQL) will do everything they need? The documentation about this does not say anything.