Hi Folks,
A hopefully simple question!
With QSqlQuery a database can be updated with bound values eg:
Code:
QSqlQuery query; query.prepare("INSERT INTO people(ID,Name,Age) " "VALUES (?, ?, ?)"); query.addBindValue(1); query.addBindValue("Fred Bloggs"); query.addBindValue(21); query.exec();
How is this done with a QSqlQueryModel ?
Thanks