Y
Y
Yu Yu2015-03-08 20:20:40
Qt
Yu Yu, 2015-03-08 20:20:40

How to include SQLite.dll in a Qt program?

I connect the database with the line
pdb = new QSqlDatabase(QSqlDatabase::addDatabase("QSQLITE"));
But this is for those cases where SQLite is registered.
If I put qsqlite4.dll from the plugins\sqldrivers folder in the project folder, how can I specify it in new QSqlDatabase in the program?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2015-03-27
@xztau

You need to put qsqlite4.dll in the sqldrivers subfolder in the project folder.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question