Qsqldatabase Qpsql Driver Not Loaded

QSQLITE driver not loaded, The drivers need to be placed under 'sqldrivers', not in the same directory as the executable (they are loaded on runtime, and Qt looks for them QSqlDatabase: QMYSQL driver not loaded QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7 C: Users Kambiz Documents Qt build-untitled16-Desktop. Jan 21, 2015 QSqlDatabase: QMYSQL driver not loaded. QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7. 从上面的错误可以看出,错误发生在MySQL数据库驱动并未加载。 对于这种错误一般有两种情况:. I want to load qt5 psql driver in windows 7. I've load the library as this way: qDebug QSqlDatabase::addDatabase(driverName,'A connection to postgres'); And the output shows.

Hello

Qsqldatabase Qpsql Driver Not Loaded Free

I'm relatively new to QT and C++.

I've experience in PHP (OOP), Webdevelopement and C.
Just for imagine with whom you are working with ;).

I'm working on windows 7 64 Bit.
QT 5.10.0 and Visual Studio Community 2017 15.5.1.

I'm working here with somebody who created a program which connects to a PostgresSQL 9.3 all works fine for him. So now I just want to support him and installed everything (already multiply times).

But I always get the same error:
'QSqlDatabase: QPSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7'

I already tried to build the driver by my self but there are many things different to the instructions and got a lot of errors.
Then I loaded the books example (http://doc.qt.io/qt-5/qtsql-books-example.html) it just works fine.

Now I change this to QPSQL and I get the exactly same error.

I don't know if I'm correct but i'm thinking I should get something like 'Wrong username/password can't connect' or 'Can't connect to database' instead of the driver....
=> Ok just tested.... my workmate (where it is working) get another message the one I would expect...

Qpsql

So I already tried everything I'm able to.

Anyone any idea what I should do?
I just want that the driver works!

Qsqldatabase Qpsql Driver Not Loaded Error

Thank you very much