QPSQL driver not loaded Qt

后端 未结 4 2009
[愿得一人]
[愿得一人] 2020-11-30 14:10

I have some trouble when I want to add a database.

    _dataBase = QSqlDatabase::addDatabase(\"QPSQL\");

After calling this method I have

4条回答
  •  暖寄归人
    2020-11-30 14:23

    Use depends.exe on qsqlpsql.dll and found that this dll need libpq.dll from PostgreSQL\9.3\libfolder. Add libpq.dll to Debug folder and it works:)

提交回复
热议问题