For my case, the build from Qt worked but exe did not. I had to copy the "sqldrivers" folder and all its DLLs from Qt folder to deployment folder next to exe file. Remember to dump the folder and its content there not just the contents, it's looking for the path in that folder.