PDA

View Full Version : QtNetwork + Qsqlite = driver not loaded ?



LordG
3rd January 2011, 15:22
Hello.
Have some strange problem with my project for WinCE device.

I use SQLite database and it works well. But now i have added TCPSocket functionality and got some strange errors: after including the QtNetwork module the SQLite driver does not want to load.

And if i remove QtNetwork - project works again.

Console output from Visual Studio:
Загрузить модуль qjpegd4.dll
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: QSQLITE
Загрузить модуль ShUtil.dll

pixaeiro
28th January 2016, 22:29
I had this same issue and I found the answer here:
http://stackoverflow.com/questions/5151279/qsqlite-driver-not-loaded-where-to-put-qt-database-driver-plugins
Just copy the sqldrivers directory as a subdirectory where QtCore4.dll is located.