我正在運行使用Qt + MSVC15編譯的可執行文件。當我在另一個Windows系統上安裝相同的.exe時,它給了我下面的錯誤。加載Qt平臺插件「windlows」in「」
"The application failed to start because it could not find or load the Qt platform plugin "windows" in "".
1日試圖解決它:
以下是我的文件夾結構的結構:
-MyExecutable (containing example.exe)
|_plugins
|_example1.dll
|_platforms
|_qwindows.dll
1.A因爲它無法找到路徑qwindows.dll 。我創建瞭如上圖所示的文件夾平臺,並將平臺文件夾「C:/Qt/Qt5.6.1/Tools/QtCreator/bin/plugins/platforms/」複製到其中。
1.B我設置環境變量QT_PLUGIN_PATH = {路徑到文件夾包含可執行} /插件
這種設置運行我的應用程序,不過others.dll不包括在內,因此具有較少的功能的GUI。
我該如何進行更改,以便其他的DLL也應該鏈接/包含在我的GUI應用程序中。