PDA

View Full Version : QSqlDatabase : no driver available



Jef
20th December 2016, 10:13
Hello,
In my Qt program 32 bits, I make a connexion to a PostgreSql DB.

On my development computer (W7 64bits), in release mode, it works but when I try on a W7 32 bits computer without Qt installed : "driver not loaded".

Before
db = QSqlDatabase::addDatabase("QPSQL");
I add a trace to display the list of available drivers coming from
QSqlDatabase::drivers();

On the dev computer : "QSQLITE", "QMYSQL", "QMYSQL3", "QODBC", "QODBC3", "QPSQL", "QPSQL7"
on the other computer : nothing !

Something is missing but what ?
:(

Lesiok
20th December 2016, 10:44
Read how to deploy Qt application on Windows (http://doc.qt.io/qt-5/windows-deployment.html).

Jef
20th December 2016, 11:54
Great,
I used windeployqt and it works !
I didn't know this tool.

Thanks a lot.;)

Gokulnathvc
13th September 2017, 10:57
You can have a look at this:

http://www.qtcentre.org/threads/52363-Deploying-Qt-application-on-Linux-Ubantu-OS?p=234474&highlight=#post234474