(亲测)designer运行报错:This application failed to start because no Qt platform plugin could be initialized

时间:2024-05-20 17:08:06

1.现象:
(亲测)designer运行报错:This application failed to start because no Qt platform plugin could be initialized
点击之后,出现:
(亲测)designer运行报错:This application failed to start because no Qt platform plugin could be initialized
2.原因:
没有添加系统环境变量。
3.解决办法:
添加系统环境变量。
4.解决步骤:
4.1打开控制面板,且在控制面板搜索栏输入"系统"
(亲测)designer运行报错:This application failed to start because no Qt platform plugin could be initialized

4.2选择高级设置
(亲测)designer运行报错:This application failed to start because no Qt platform plugin could be initialized
4.3点击环境变量(亲测)designer运行报错:This application failed to start because no Qt platform plugin could be initialized
4.4点击新建
(亲测)designer运行报错:This application failed to start because no Qt platform plugin could be initialized
4.5输入,确定。
(亲测)designer运行报错:This application failed to start because no Qt platform plugin could be initialized
ps:
变量名:QT_QPA_PLATFORM_PLUGIN_PATH
变量值:pyqtX_tools中的与designer同级的plugins文件夹路径
4.6重新打开软件,显示正常。