(Qt 5.7.0) Could not find or load the qt platform plugin “windows”

https://stackoverflow.com/questions/38359850/qt-5-7-0-could-not-find-or-load-the-qt-platform-plugin-windows

(Qt 5.7.0) Could not find or load the qt platform plugin “windows”

  • Instead of copying all dlls you can find, just place your .exe in an empty folder and open the Qt5.* command line. Then run: windeployqt yourfile.exe. This will copy the required dlls from the Qt distribution – Sebastian Lange Jul 14 '16 at 5:31

 

 

As told by "Sebastian Lange" in the comments, using windeplyqt.exe did the job. I just deleted everything but the .exe in my build folder, opened Qt5.7 command line, chaged directory to the same as my .exe and ran the command windeployqt . or windeployqt [name_of_exe].exe

Thanks to everyone!

 

posted @ 2018-04-11 11:09  sky20080101  阅读(82)  评论(0)    收藏  举报