Make sure your db driver is built, if its not here is how your build it:
http://qt-project.org/doc/qt-4.8/sql...rted-databases

And this is how you use it:
http://qt-project.org/doc/qt-4.8/qsqldatabase.html