[PyQt] Connection PostgreSQL

Andreas Pakulat apaku at gmx.de
Mon Mar 3 23:05:01 GMT 2008


On 03.03.08 17:30:53, Mirko Coz wrote:
> How can I connect with PostgreSQL from PyQt?. I am using Ubuntu Gutsy
> and PostgreSQL 8.3.

See the QtSql api docs at: http://doc.trolltech.com/4.3/qtsql.html

Basically you just need to make sure you specify the PSQL driver when
adding a QSqlDatabase.

Andreas

-- 
Your motives for doing whatever good deed you may have in mind will be
misinterpreted by somebody.


More information about the PyQt mailing list