Quote Originally Posted by Lykurg View Post
Hi, the problem is that you use query without setting the opened database to that query, so the QSqlQuery is invalid. Use
Qt Code:
  1. if (db.open())
  2. {
  3. QSqlQuery query;
  4. //...
  5. }
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!