1.Release生成打包文件test.exe
2. 找到release生成的执行文件(*.exe)路径位置:C:\Users\keep\Desktop\build-test-Desktop_Qt_5_5_1_MinGW_32bit-Release\release\test.exe
3.qt确定windeployqt.exe控制台目录
windeployqt.exe控制台:D:\Qt\Qt5.5.1\5.5\mingw492_32\bin\windeplroyqt.exe
4.win+R打开命令行,输入cmd打开黑窗口,依次输入以下命令
d:
cd D:\Qt\Qt5.5.1\5.5\mingw492_32\bin\
windeployqt.exe C:\Users\keep\Desktop\build-test-Desktop_Qt_5_5_1_MinGW_32bit-Release\release\test.exe
5.在C:\Users\keep\Desktop\build-test-Desktop_Qt_5_5_1_MinGW_32bit-Release\release\文件夹下会生成很多dll文件将所有dll文件和test.exe拷贝到新的windows电脑下,双击执行test.exe
6.会有弹窗。提示缺少dll文件(1~5个),将缺少的dll文件从D:\Qt\Qt5.5.1\5.5\mingw492_32\bin\目录下再拷贝添加进去即可