I am using VS2008 & QT plugin to make my application. After making package when I am running the application I am getting error :
QSqlDatabase: QSQLITE d
Well, the function: addDatabase("QSQLITE"); takes two parameters, the first is the driver and the second is the name of your connection, (passed as a QString)
Now, try the following:
QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE", "SQLITE");
It worked for me, so I guess it'll work for you. (Assuming SQLITE is among your installed drivers)
You can check for SQLITE by the following:
qDebug() << QSqlDatabase::drivers();
Good luck!
Zaher J.G.