解决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如下图:解决designer运行报错:This application failed to start because no Qt platform plugin could be initialized问题_第1张图片
.原因:
没有添加系统环境变量。先查看控制控制面板中的查看高级系统设置如图设置环境变量解决designer运行报错:This application failed to start because no Qt platform plugin could be initialized问题_第2张图片
解决designer运行报错:This application failed to start because no Qt platform plugin could be initialized问题_第3张图片

解决designer运行报错:This application failed to start because no Qt platform plugin could be initialized问题_第4张图片

解决designer运行报错:This application failed to start because no Qt platform plugin could be initialized问题_第5张图片
我的设置为:变量名:QT_QPA_PLATFORM_PLUGIN_PATH
变量值:D:\python\Lib\site-packages\pyqt5_tools\Qt\plugins

pyqt5_tools中Qt文件夹下的plugins文件夹路径与designer上级bin里面同级
再重启,如图就OK啦。

解决designer运行报错:This application failed to start because no Qt platform plugin could be initialized问题_第6张图片

你可能感兴趣的:(python,pycharm,qt,designer,tool)