QSQLITE driver not loaded
-
Hi everyone, I'm quite new to Qt. I'm now making a project which connects to a Sqlite database. When I run it in Debug mode everything seems ok but when i switch to Release mode it says :
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
I've searched this problem on many websites but i couldn't solve this problem. Can anyone help me! -
Just to be sure I understand.
Do you run the RELEASE build from the Creator or
do you try to run with the .exe in the release folder? -
did u try to run it from Creator with the SQLIte Dll in RELEASE folder ?
-
@Anh-Phan
Ok.
Can you try with this test project
https://www.dropbox.com/s/2ggexvrbeciiepw/dbtest.zip?dl=0
Works for me both in DEBUG and RELEASE
running from Creator. -
@Anh-Phan
Ok , at least its consistent. :)Do you use mingw or Visual studio ?
I assume you just use the online installer to install Qt and
have not compiled Qt yourself.It must be a some sort of path problem.
Im confused too :)
-
Hi,
Maybe a silly question, but did you check that you currently have the corresponding .dll file in your Qt installation folder ?