Qt-jambi-interest Archive, September 2007
The Qt Jambi / JDBC project
Message 1 in thread
To all:
First, many thanks for putting this together. It's exactly what is
needed to bring CRUD type java programming to the desktop.
Just starting testing the libs and got the following error:
QSqlDatabase: QJDBC driver not loaded
QSqlDatabase: available drivers: QSQLITE
when running these:
QSqlDatabase db = QSqlDatabase.addDatabase("QJDBC")
It appears that I need a driver plugin, but that isn't mentioned
anywhere (I think) in the docs. Some help in this regard would be
greatly appreciated.
Brian
Message 2 in thread
Hi, Brian.
Brian Jenkins wrote:
> Just starting testing the libs and got the following error:
>
> QSqlDatabase: QJDBC driver not loaded
> QSqlDatabase: available drivers: QSQLITE
>
> when running these:
>
> QSqlDatabase db = QSqlDatabase.addDatabase("QJDBC")
>
> It appears that I need a driver plugin, but that isn't mentioned
> anywhere (I think) in the docs. Some help in this regard would be
> greatly appreciated.
>
Have you tried running QJdbcSqlDriver.initialize() before the
addDatabase() call? This should register the driver.
See the JavaTest.java file (also in the labs svn depot) for an example
of how to use QJDBC.
-- Eskil