解决Qt This application failed to start because no Qt platform plugin could be initialized问题

引用:https://blog.csdn.net/qq_51606180/article/details/120384845

方法一:
在用户变量中添加如下内容:
变量名:QT_QPA_PLATFORM_PLUGIN_PATH
变量值:%QTDIR%\plugins\platforms\

方法二:
将Qt目录下plugin文件夹中的platforms文件夹直接复制到项目.exe的运行目录下

你可能感兴趣的:(qt,开发语言)