QT 连接QPSQL 连接不上



  • 使用QT5.3.0,里面已经有QPSQL数据库插件了,我也在环境变量里面写入了QPSQL的LINCLUDE LIB bin 文件路劲,也把libpq.dll复制到了我debug目录下,但是放我运行的的时候,还是提示
    QSqlDatabase:QPSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL
    7
    请教呀



  • 把插件DLL也拷贝到你的DEBUG目录下试试?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.