QSqlDatabase: QSQLITE driver not loaded [SOLVED]
-
What about Q_IMPORT_PLUGIN in your code ?
No it doesn't, libqsqlite.a is the library containing the plugin
-
thanks lot...
@Q_IMPORT_PLUGIN(qsqlite)@
done the job...just for get known
i've already installed sqlite3 libsqlite3-dev
does it help qt to works or Qt handle sqlite it self?why is my self installed (general way) Qt5.3 sqldrivers directory contains more file then above i posted?
thank you again for great help...
-
Depends on how you configured Qt. Qt comes with it's own version of sqlite and IIRC when building your own version you have to tell configure to use the system's available sqlite if you don't want to use Qt's version.
Because you didn't install all related dev packages so to the auto detection failed for the other drivers and thus you only have the sqlite plugin.
-
got it
thank you -
This post is deleted!
-
@SGaist
Q_IMPORT_PLUGIN(qsqlite)
/home/user/Downloads/splinechart/main.cpp:41: error: undefined reference to 'qt_static_plugin_qsqlite()' -
@Avtansh-Sharma : ?
-
Do you have a static build of Qt ?
-
Then why are you using the instructions for static plugins ? The SQLite plugin is not statically built.