简体   繁体   中英

PyQt5 Designer is not working: This application failed to start because no Qt platform plugin could be initialized

i have a problem with PyQt5 Designer. I install PyQt with -pip install PyQt5 and then -pip install PyQt5-tools everything OK. But when i try to run Designer it open messagebox with error: This application failed to start because no Qt platform plugin could be initialized? how to deal with it?

  1. Go to => Python38>lib>site-packages>PyQt5>Qt>plugins
  2. In plugins copy platform folder
  3. After that go to Python38>lib>site-packages>PyQt5_tools>Qt>bin
  4. paste folder here. Do copy and replace.

This will surely work.. Now you can use designer tool go and do some fun with python...

Try running it using command: pyqt5designer

It should set all the paths for libraries.

Works on Python 3.8, pyqt5-tool 5.15

I found a way of solving this:

Go to you python instalation folder Python38\Lib\site-packages\PyQt5\Qt\bin

Then copy all of that files to your clipboard and paste them at Python38\Lib\site-packages\pyqt5_tools\Qt\bin

Then open the designer.exe and it should work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM