Qt QPSQL Driver Issue

I am trying to connect postgresql with a Qt SQL module. I successfully compiled the psql driver (src \ plugins \ sqldrivers \ psql). But when I try to connect postgresql, I get this message;

QSqlDatabase: QPSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL3 QMYSQL QODBC3 QODBC QPSQL7 QPSQL

I am using PostgreSQL 8.3, Qt 4.7.1 and Visual Studio 2008 on Windows XP SP3. (I also try this , but didn 't help)

+3
source share
1 answer

? , . qsqlpsql4.dll qsqlpsqld4.dll % QTDIR%\plugins\sqldrivers. , , : QString QLibraryInfo:: location (QLibraryInfo:: PluginsPath);

+2

Source: https://habr.com/ru/post/1782516/


All Articles