Quote Originally Posted by waynew View Post
That is not true. You can do this (it works in my code):

Qt Code:
  1. QSqlQuery query;
  2. query.prepare("SELECT * from table_name where column = ?");
  3. query.addBindValue("value");
  4. query.exec();
  5. model->setQuery(query);
To copy to clipboard, switch view to plain text mode 
Thanks!!! I just knew that setQuery() didn't execute the query!!