Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    QT 连接QPSQL 连接不上

    Chinese
    2
    2
    2071
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      foxgod last edited by

      使用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
      请教呀

      1 Reply Last reply Reply Quote 0
      • J
        JohnYork last edited by

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post