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?
Sometimes corrupted system files can trigger various errors and issues when running your apps such as the “no Qt platform plugin could be initialized” error. So, we recommend you run an SFC scan or DISM to check system files.
Note: You can install only plugins that are supported by your Qt Creator version. To install plugins: Select Help > About Plugins > Install Plugins. In the Source dialog, enter the path to the archive or library that contains the plugin.
If the Pycharm console or debugger are showing “Could not find or load the Qt platform plugin windows”, the Python EXE file may be located at a different location for the PyCharm interpreter. You might manually select it in File -> Settings -> Interpreter.
This will surely work.. Now you can use designer tool go and do some fun with python...
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.
Try running it using command: pyqt5designer
It should set all the paths for libraries.
Works on Python 3.8, pyqt5-tool 5.15
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With