[Qt-interest] error trying to connect to postgreSQL database
Diego Schulz
dschulz at gmail.com
Tue Aug 25 22:19:12 CEST 2009
>
> Many thanks!
>
> I'm using qdevelop under Ubuntu 9.04.
>
>
>
> 2009/8/24 Diego Schulz <dschulz at gmail.com>
>>
>> On Mon, Aug 24, 2009 at 2:16 PM, mierdatutis mi<mmm286 at gmail.com> wrote:
>> > Hi,
>> >
>> > I have qt 4.5 and I try to develop a program that can connect to remote
>> > postgreSQL database.
>> >
>> > When I try to connect the debug says me:
>> >
>> > QSqlDatabase: QPSQL driver not loaded
>> > QSqlDatabase: available drivers: (null)
>> >
>> > Any help?
>> > Many thanks and sorry for my english!
>> >
>>
>> Windows or Unix-like?
Apparently your installation lacks the PostgreSQL driver (Qt4 plugin).
Try this:
$ sudo aptitude install libqt4-sql libqt4-sql-psql
regards,
diego
More information about the Qt-interest-old
mailing list