Hi everybody,
QT: 4.1.3
OS: WIN XP

I tried to connect to my sql server via odbc and it works perfect. I have installed postgre 8.1 on my machine and build the plugin for postgre. I get a new file "qsqlpsql.dll". So i would like to connect it to a Postgre database. I get the known error: Driver not loaded, driver not loaded.
Here my code:
Qt Code:
  1. QSqlDatabase db = QSqlDatabase::addDatabase("QPSQL");
  2. db.setHostName("localhost");
  3. db.setDatabaseName("inventar");
  4. db.setUserName("postgres");
  5. db.setPassword("tekoteko");
  6. if(!db.open())
  7. {
  8. QMessageBox::information(this,"",db.lastError().text());
  9. return false;
  10. }
  11. else
  12. {
  13. . . .
To copy to clipboard, switch view to plain text mode 

What could i try to make my connection running?

Thanks