After reading this tutorial http://www.pikopong.com/blog/2011/07/11/how-to-enable-mysql-support-in-qt-sdk-for-windows-part-2/ I was able to successfully built the mysql lib for Qt. But somehow it is not listed in the available drivers list, although I copied the files in the right directory.
This is how my Qt-plugins\sqldrivers directory looks like now :
C:\QtSDK\Desktop\Qt\4.8.0\mingw\plugins\sqldrivers
- libqsqlite4.a
- libqsqlited4.a
- libqsqlmysql4.a
- libqsqlmysqld4.a
- libqsqlodbc4.a
- libqsqlodbcd4.a
- qsqlite4.dll
- qsqlited4.dll
- qsqlmysql4.dll
- qsqlmysqld4.dll
- qsqlodbc4.dll
- qsqlodbcd4.dll
And this is what QSqlDatabase::drivers() say :
("QSQLITE", "QODBC3", "QODBC")
Is there something essential missing? Thank you for your help in advance and happy holidays!