HI!
I try to create and connect to Database with Qt 5.0.0 and Ubuntu 12.04LTS;
db->addDatabase("QSQLITE");
qDebug()<<this<<__FUNCTION__<<__LINE__<<db->lastError().text();
db=new QSqlDatabase();
db->addDatabase("QSQLITE");
qDebug()<<this<<__FUNCTION__<<__LINE__<<db->lastError().text();
To copy to clipboard, switch view to plain text mode
db says: Driver not loaded;
I copy libqsqlite.so at Qt/gcc/plugins/sqldrivers/libqslite.so to /myproject/sqldrivers/libqslite.so;
but no result;
And i do this:
a.addLibraryPath(a.applicationDirPath()+"sqldrivers/");
a.addLibraryPath(a.applicationDirPath()+"sqldrivers/");
To copy to clipboard, switch view to plain text mode
How to add driver into my Project?
Bookmarks