Maybe 2 other things you should check( if you haven't done for so far):

After you configured Qt you get a report which contains the configuration, make sure mysql is yes (or plugin).

Make sure your .pro file contains the line QT += sql