Qt-c++桌面編程報錯:qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "",已解決


語言:c++

編譯庫:Qt GUI,qt5.12.1

軟件類型:Qt application,qt桌面軟件

運行平台:window 10

?
按照【https://www.devbean.net/2012/08/qt-study-road-2-hello-world/】里的教程在QtCreator IDE里一步步進行,結果...報了這個錯誤:
【qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""】
:
參考【https://blog.csdn.net/xzpblog/article/details/79126250】
原因:在window里的直接運行QtCreator IDE編譯的軟件時,相關依賴庫找不到,就報錯了
在cmd里用“windeployqt”命令運行: windeployqt  xxx.exe  ,
會將相關依賴全部打包好,復制到當前運行文件夾里,
然后再直接運行就可以了運行成功了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM