1. 程式人生 > >This application failed to start because it could not find or load the Qt platform plugin windows

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

Qt 程式報錯 This application failed to start because it could not find or load the Qt platform plugin “windows” 如下圖

在這裡插入圖片描述

今天遇到一個很奇怪的問題,Qt應用程式debug版的exe正常執行,但是release版總是報如上錯誤。
然後就根據報錯找了一些方法, 大部分是說把qwindowsd.dll 拷貝到exe同級目錄。

但是都無效

最後看到一種說法是把 D:\qt\5.5\mingw492_32\plugins\ (當然,這只是我的安裝目錄) 下的**

資料夾 platforms 拷貝到exe同級目錄

我的platforms 資料夾包含的內容如下
在這裡插入圖片描述

完美解決!!!