The Qt packaged program reports an error: Error: Failed to connect database.Driver not loaded Driver not loaded
After investigation, it was found that the Qt msvc2015_64\plugins\sqldrivers
folder needs to be copied to the program directory, the sqldrivers
directory.
Run the program and the error is eliminated.
Succeed to connect database.