最近在编写pyQt的程序,其中QtDesigner.exe在X:\anaconda3\Library\bin里,双击designer.exe会出现如下错误‘This application failed to start because no Qt platform plugin could be initialized.’
解决办法:
在X:\anaconda3\Library\plugins\platforms里将qdirect2d.dll,qminimal.dll,qoffscreen.dll,qwebgl.dll,qwindows.dll这5个dll文件复制到designer.exe文件夹下,然后再双击designer.exe就会出现QtDesigner的对话框了。