PDA

View Full Version : Qt jambi : CachedTable problem with QSqlite Driver



jiboon
26th May 2008, 18:15
hi
Tryin' to compile the CachedTable example i get the error

QSqlDatabase : Qsqlite driver not loaded
QSqlDatabase : Available drivers : //blank

note that i'm using eclipse 3.3
Qt jambi 4.3

mjfan80
7th July 2008, 20:13
i have the same problem

i installed qt, and then qt jambi (i want to use qt as a java programmer)
I'm pretty new to java... i'm sorry

then i do as written here
http://doc.trolltech.com/4.4/sql-driver.html#building-the-drivers-using-configure
i use it configure... and i think i set correctly the environment for QT... now i see mysql as a enable driver

But how i have to configure MYSQL as a driver for QT Jambi?
in qtjambi if i write

ist<String> drivers;
drivers = QSqlDatabase.drivers();
System.out.println(drivers.toString());
if (drivers.isEmpty()) System.out.println("è vuoto");

i see that there is no driver installed

can someone help us?