Problem in running qtsql related project independently?
-
You need to deploy needed libs with your application. Take a look here -> "Deploying Qt Application":http://developer.qt.nokia.com/doc/qt-4.8/deployment.html
-
You need to distribute the SQL dll on your project, put the correct dll on your application folder under sqldrivers folder.
For example, this use SQLITE:
@
your_app_directory\sqldrivers\qsqlite4.dll
@You can find them into @QtSDK\Desktop\Qt\4.7.4\mingw\plugins\sqldrivers@
If you dont use mingw use the msvc2008 folder.
I hope this helps you ^_^