Hi,
how do I connect QSQlite database from Linux (Fedora 9)
tried to connect to the database with the following code
//connecting to the database
QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
db.setDatabaseName(":memory:");
if (!db.open()) {
QMessageBox::critical(0, qApp->tr("Cannot open database"),
qApp->tr("Click Cancel to exit."), QMessageBox::Cancel);
And it returns with the following error
Error :
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
I tried to build QT with
configure -qt-sql-qsqlite ( also tried with -plugiin-sql-qsqlite
gmake
gmake install
can somebody guide, to resolve this problem ?
thanks in advance
Bookmarks