PDA

View Full Version : QSqlDatabase



Pragya
26th June 2007, 12:21
Hi all,
I am trying
QSqlDatabase::isDriverAvailable("QODBC3")
Every time the above statement is returning false:(
Can anyone help me in this?
Thanks & regards
Pragya

Pragya
26th June 2007, 13:07
out of the listed driver names only "QSQLITE" is having true value.
Can anyone tell that why other drivers are returning false value.

croland
26th June 2007, 18:40
Hey Pragya,

It doesn't look like the QODBC3 driver is listed as a current available driver here:
http://doc.trolltech.com/4.3/qsqldatabase.html#QSqlDatabase-3

jpn
26th June 2007, 18:53
Can anyone tell that why other drivers are returning false value.
One has to configure and build Qt with support for particular SQL drivers. See SQL Database Drivers (http://doc.trolltech.com/4.3/sql-driver.html) for SQL driver building instructions.