问题
I create a qt application in visual studio. After building the project , the exe file not running and I have error message for missing a lot of dll files such as Qt5Core.dll and the others.
How can I fix it?
回答1:
let suppose your exe file name in MyApp.exe.
copy
MyApp.exein a new folder. for examplemyfolder.open
myfolderpress shift and right click at myfolder's windowin opened right click menu select
Open command window here- execute
C:\Qt\Qt5.9.3\5.9.3\msvc2015_64\bin\windeployqt.exe MyApp.exe
note that C:\Qt\Qt5.9.3\5.9.3\msvc2015_64 path is depend on your installed qt version and it's directory.
来源:https://stackoverflow.com/questions/53031951/how-to-create-exe-file-in-qt-designer-with-visual-studio