[Qt-interest] QPSQL available, but QPSQL not loaded

Carel Combrink carel.combrink at gmail.com
Fri Jun 3 10:58:51 CEST 2011


Hi,

I had the same problem a while back. What I can remember is:

Your application needs to be able to get the following dlls so that you can
use the QPSQL driver.
ssleay32.dll
msvcr71.dll
libpq.dll
libintl-8.dll
libiconv-2.dll
libeay32.dll

If I remember correctly I copied it into the same folder as the application
exe.
You could probably point your PATH variable to it but I have not tried this.

Hope this helps,
Carel

On Thu, Jun 2, 2011 at 11:20 PM, Oluwafemi A <wordbased.1 at gmail.com> wrote:

> Hi, i'm building a postgresql-backed application, but
> QSqlDatabase::drivers(); returns QSQLITE QPSQL7 QPSQL
> but QSqlDatabase::addDatabase("QPSQL");
> returns driver not loaded driver not loaded........................any help
> would be appreciated
>
> i dont have problem on linux, but this issue arises on windows, Qt 4.7.3
> and PostgreSQL 8.4.8
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110603/ec29bab1/attachment.html 


More information about the Qt-interest-old mailing list