Hello Everyone,

I have looked at a few threads on the forums about this topic but could not find one that deals with windows 7 or a windows platform in general.

I have a bit of code here...
Qt Code:
  1. currentDB = new QSqlDatabase;
  2. currentDB->addDatabase("QSQLITE");
  3. currentDB->setHostName("broker");
  4. currentDB->setDatabaseName(temp);
  5. currentDB->setUserName("MTG");
  6. currentDB->setPassword("MTG");
  7. if(currentDB->open())
  8. {
  9. qDebug() << "DB opened successfully";
  10. }
  11. else
  12. {
  13. qDebug() << "DB not opened successfully" << currentDB->lastError();
  14. }
To copy to clipboard, switch view to plain text mode 

Whenever my program gets to this section it complains because...
QSqlError(-1, "Driver not loaded", "Driver not loaded")

I have seen lots of stuff on the internet about this problem, but i am having a really hard time finding a fix for windows. I am trying to use sqlite here.

I am also having the same problem on my linux machine, but i am trying out some of the other threads' suggestions for solving that.

Can someone please help me asap with this problem for windows 7.

Thanks in advance!