Petric Frank wrote:
> Hello,
>
> i am new to Qt-Jambi, but i've used Qt/C++ for some of my applications.
>
> Using Qt-Jambi-4.5.2 precompiled (+ Eclipse plugin) i tried to do some
> queries
> using a MySQL database. Alike coding in C++ i tried this code snippet:
>
> QSqlDatabase db = QSqlDatabase.addDatabase ("QMYSQL");
> db.setDatabaseName ("db");
> db.setUserName ("user");
> db.setPassword ("pass");
> if (!db.open ()) {
> QMessageBox.critical(null, QApplication.instance().tr ("can't open db"),
> db.lastError ().text ());
> return;
> }
> QSqlQueryModel tabledata = new QSqlQueryModel ();
> tabledata.setQuery ("select * from table");
>
> but i got the info that currently QSQLITE is the only driver available. For
> me
> this is similar to Qt/C++. There i had to compile the MySQL module manually.
>
> So i tried to do this here also. But after hours digging around i haven't
> found a guide how to do that.
>
> Could someone point me to some guide or hints to accomplish this ?
The only plugin that we could guarantee binary compatibility for is the
QSQLLITE plugin, so its the only one that comes precompiled. If you need
other plugins, you need to build Qt, then build Qt Jambi using that
freshly build Qt. This version of Qt Jambi will then have all plugins
that you built availble. This version of Qt Jambi would however not be
compatible with eclipse, so the eclipse integration will most likely not
work together with it.
-
Gunnar
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest