Originally Posted by Lykurg Hi, the problem is that you use query without setting the opened database to that query, so the QSqlQuery is invalid. Use Qt Code: Switch view if (db.open()){ QSqlQuery query; //...} if (db.open()) { QSqlQuery query; //... } To copy to clipboard, switch view to plain text mode Thanks a lot Sir; the error saying "Driver not Loaded" has disappeared Like Magic thanks again!
if (db.open()){ QSqlQuery query; //...}
if (db.open()) { QSqlQuery query; //... }
View Tag Cloud
Forum Rules
Bookmarks