Error: Failed to connect database.Driver not loaded Driver not loaded

Error: Failed to connect database.Driver not loaded Driver not loaded

 

Qt打包好的程序报错:Error: Failed to connect database.Driver not loaded Driver not loaded

后经排查,发现需要把Qt    msvc2015_64\plugins\sqldrivers      文件夹拷贝到程序目录下,sqldrivers目录。

运行程序,错误消除。

Succeed to connect database.

 

 

#######################

posted @ 2021-09-07 13:04  西北逍遥  阅读(608)  评论(0编辑  收藏  举报