Hello,

I'm trying to connect to Postgres database from my QGis plug-in.
Connection to Postgres succeeds with the following code (i.e.
PQstatus( postgresPGconn ) returns CONNECTION_OK ) :

    PGconn *postgresPGconn = PQconnectdb("host=localhost user=postgres
port=5432 dbname=test");

But, I am not able to instantiate a QPSQLDriver object. As mentioned in
the Qt documentation, if I include the file "qsql_psql.cpp" using
"#include" directive, my plug-in is not getting recognized by the QGis
plug-in manager.

What might be wrong? Any help on this?

Thanks.
Regards,
Ela.
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user

Reply via email to