1. 程式人生 > >【qt錯誤】This application failed to start because it could not find or load

【qt錯誤】This application failed to start because it could not find or load

qt釋出exe無法執行,提示plugin windows錯誤

This application failed to start because it could not find or load the Qt platform plugin “windows”.

解決方法:
將QT的bin目錄下的\platforms\qwindows.dll拷貝至exe所在目錄,注意保留\platforms子目錄

另外,執行exe,提示應用程式錯誤
解決方法:
缺少dll,並非qt的dll,而是qt以外的庫;缺少qt本身的dll,會報錯提示相應的dll名稱