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

问题:打开QTdesigner时报错如下

PyQt:解决This application failed to start because no Qt platform plugin could be initialized问题_第1张图片

解决方法:

找到路径python37\Lib\site-packages\pyqt5_tools\Qt\plugins(按个人安装的路径)。
在这里插入图片描述
将plugins文件夹复制到pyqt5_tools\Qt\bin\designer.exe或pyqt5_tools\Qt\designer.exe同级目录下(路径可能不同,找到designer.exe即可),再次打开designer.exe就没问题啦。
PyQt:解决This application failed to start because no Qt platform plugin could be initialized问题_第2张图片
PyQt:解决This application failed to start because no Qt platform plugin could be initialized问题_第3张图片
关于Pyside2同样的问题请参考:
https://www.cnblogs.com/IaCorse/p/12024428.html

你可能感兴趣的:(PyQT,python,pyqt,qt5)