I also noticed that I can use "bindValue()" for select statements, even though the examples only show them for inserts:

Qt Code:
  1. query.prepare("select userid, username, firstname, lastname, email, status from user where username=:username");
  2. query.bindValue(":username", login.username);
  3. if (!query.exec()) {
  4. //do something to handle the error here
  5. } else {
  6. while (query.next()) {
  7. //do something with the results we got here
  8. }
  9. }
  10. ]
To copy to clipboard, switch view to plain text mode 

is this a proper use of "bindValue()"?