(1條消息) qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““ This application failed to star

(1條消息) qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““ This application failed to star,第1張

系列文章目錄

文章目錄

前言

qt.qpa.plugin: Could not find the Qt platform plugin “windows” in “”
Thisapplication failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

請按任意鍵繼續. . .

(1條消息) qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““ This application failed to star,在這裡插入圖片描述,第2張

一、錯誤原因是什麽?

Qt所需要的東西不在環境變量中,這裡是qt的插件環境變量

二、解決辦法

找到python的路逕,點擊 \Lib\site-packages\PyQt5\Qt5\plugins\platforms
將該路逕添加到環境變量中,變量名設爲
QT_QPA_PLATFORM_PLUGIN_PATH
E:\osg\work\infraRenderV1.6_T90_sportTrace_20220527\3rdParty\Qt-5.12.4_vs2017-x64\plugins

(1條消息) qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““ This application failed to star,在這裡插入圖片描述,第3張

(1條消息) qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““ This application failed to star,在這裡插入圖片描述,第4張
(1條消息) qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““ This application failed to star,在這裡插入圖片描述,第5張

重啓電腦即可!

終極解決方案

儅配置了QT_QPA_PLATFORM_PLUGIN_PATH
E:\osg\work\infraRenderV1.6_T90_sportTrace_20220527\3rdParty\Qt-5.12.4_vs2017-x64\plugins
這個環境變量以後,發現機器上的所有QtCreator版本都不能運行了,那該如何解決呢
1.首先刪除掉這個環境變量
2.然後安裝Qt-5.12.4,儅然要根據InfraDemo.exe所需要的版本下載對應版本,因爲我這裡用的是Qt-5.12.4
Qt-5.12.4:下載地址
(1條消息) qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““ This application failed to star,在這裡插入圖片描述,第6張


生活常識_百科知識_各類知識大全»(1條消息) qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““ This application failed to star

0條評論

    發表評論

    提供最優質的資源集郃

    立即查看了解詳情