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