Results 1 to 2 of 2

Thread: Postgres drivers are not working with my QT project

  1. #1
    Join Date
    Jul 2015
    Qt products

    Post Postgres drivers are not working with my QT project

    I have build Postgres drivers as mentioned here ]
    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
    Qt products

    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 10: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, 20: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, 15:31
  3. I am working on a POS project
    By foxrider in forum Newbie
    Replies: 12
    Last Post: 21st April 2014, 14:48
  4. javascript loop not working in qml project
    By vinayaka in forum Qt Quick
    Replies: 1
    Last Post: 18th August 2011, 09:01

Tags for this Thread


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.