How to create exe file in qt designer with visual studio?

若如初见. 提交于 2019-12-13 08:40:43

问题


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.exe in a new folder. for example myfolder.

  • open myfolder press shift and right click at myfolder's window

  • in 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!