Google

Qt and MySQL

Qt integrates well with different backend RDBMS and frontend Graphics APIs.
However, using MySQL with Qt on Windows is a bit difficult to start with. You have to make mysql driver plugins. This is a bit confusing and material available on Internet generally does not help much. I tried N numbers of methods scattered here and there in forums and elsewhere.
But nothing worked. The concept was simple. Install development environment for MySQL. Convert the installed libraries which are for MSVC compiler into those of mingw32. You have to download mingw utilities for these conversions. Then configure Qt for these plugins and make it.
So, even if one step does not work then all efforts are gone. I wasted almost ten days until I found this compact but most useful tutorial for same. Here's the link.