1.手动发布
若直接双击.exe文件,会弹窗缺少Qt5Core.dll等一系列文件的错误。
如在debug模式下:1、将 ..\Qt5.9.1\5.9.1\mingw2015_64\bin文件以下的文件和..\Qt5.9.1\5.9.1\mingw2015_64\plugins”目录中的 platforms
文件夹(其中只需保留 qwindowsd.dll 文件)、连同 exe 文件一起打包。
双击则可运行。
2.在window下用windeployqt 工具部署文件
1、windeployqt 工具所在路径:..\Qt5.10.1\5.10.1\mingw2015_64\bin