Sailordi
Sailordi

Reputation: 73

QSQLITE driver not loaded

Im trying to make a program in Qt that uses a SqlLite database, but i can not get it to work...

When i try to execute a query i get the error:
Driver not loaded Driver not loaded

But when i print out the drivers that are available i get:
("QSQLITE", "QMYSQL", "QMYSQL3", "QODBC", "QODBC3", "QPSQL", "QPSQL7")

I have downloaded the SqlLite dll for both 32 bit & 64 bit and when put ether of them in my release folder (after using windeployqt) i still get the same error..

So it should be available for use or am i missing some thing?

Upvotes: 1

Views: 3067

Answers (1)

oklas
oklas

Reputation: 8220

You need to create folder sqldrivers near the executable and copy there the files from folder plugins/sqldrivers from where your Qt system is installed. (at least qsqlite4.dll or 5 or so on dependently from your Qt version)

I do not meet necessity to download SqlLite dll to make sqlite database work in my projects in Qt4.

Upvotes: 1

Related Questions