@mengsen
Of course!
Open a Command Prompt.
Type: set QT_DEBUG_PLUGINS=1, then <Enter> key.
Run the executable (presumably by typing its full path).
Look at what you get back in the Command Prompt.
Try it first on your system where it works. Then try it where it does not. You are usually interested in the end of the diagnostic output, where it indicates why it could not load MySQL driver.
EDIT Ohhh, I have a bad feeling that under Windows someone said the diagnostic output does not go to the terminal where you run from, like it does under Linux, instead it goes somewhere for Windows logging instead :(
Yep, see https://www.qtcentre.org/threads/34927-QT_DEBUG__PLUGINS-Windows-7-where-does-it-log-information
One post said "Then I use sysinternals debugview free utility to monitor the output at run-time."
See post on this forum https://forum.qt.io/topic/41943/platform-plugin-windows/8
Hi, just an update on why QT_DEBUG_PLUGINS=1 doesn't work as expected when you launch a Qt app from the command line (as it does on Linux and Macs): I found that for Windows MSVC and MinGW compilers, Qt routes the texts to OutputDebugString(), that's why the CMD window shows no output.
Instead, to see the output, download "Sysinternal's DbgView":http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx