Results 1 to 2 of 2

Thread: Postgres drivers are not working with my QT project

  1. #1
    Join Date
    Jul 2015
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Post Postgres drivers are not working with my QT project

    I have build Postgres drivers as mentioned here ]http://doc.qt.io/qt-5/sql-driver.html
    My problem is when I run the build I get the error of "no driver found".
    Please Note that I have also placed the driver in the same folder has that of my exe file.
    Thanks in advance

    In my code
    Qt Code:
    1. db = QSqlDatabase::addDatabase("QPSQL");
    2. if(!db.isValid)
    To copy to clipboard, switch view to plain text mode 
    I am getting db.isValid always false

  2. #2
    Join Date
    Jun 2015
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Postgres drivers are not working with my QT project

    check the doc for complete the connection process : you must set the database's name, password and host . and you can also copy all postgree's dlls into ...\Tools\QtCreator\bin folder !
    Last edited by marsqtc789; 30th July 2015 at 11:51. Reason: spelling corrections

Similar Threads

  1. Working project failing to build
    By gpuckett in forum Qt Programming
    Replies: 8
    Last Post: 11th June 2015, 21:49
  2. Qt Creator Two instance of Qt Creator working with the same project
    By Momergil in forum Qt Tools
    Replies: 0
    Last Post: 18th June 2014, 16:31
  3. I am working on a POS project
    By foxrider in forum Newbie
    Replies: 12
    Last Post: 21st April 2014, 15:48
  4. javascript loop not working in qml project
    By vinayaka in forum Qt Quick
    Replies: 1
    Last Post: 18th August 2011, 10:01

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.