一招解决错误:This application failed to start because not Qt platform plugin could be initialized.
遇到的问题
最近换了电脑很郁闷,装钉钉 装印象笔记打开后,均提示以下这个错误, 错误内容:This application failed to start because not Qt platform plugin could be initialized.Reinstalling the application may fix this problem.
解决方法
第一步,找到QT的安装路径(因我电脑已经安装过QT5),直接使用everything 搜索 paltform\platforms
![](https://img2022.cnblogs.com/blog/1200628/202211/1200628-20221119160345387-187087724.png)
第二步 ,我们把这个路径添加到环境变量里面:打开用户变量,新建用户名 QT_QPA_PLATFORM_PLUGIN_PATH , 变量值D:\Qt\Qt5\5.14.2\mingw73_64\plugins\platforms
![](https://img2022.cnblogs.com/blog/1200628/202211/1200628-20221119160451218-1643500035.png)