Feeling really stupid, right now, but the title says it all:
How do you start the QtDesigner?
I've installed PyQt5
via pip
and I believe to have identified the directory it's been installed in as
C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5
Now what? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe
in ...\site-packages\PyQt5\Qt\bin
, but that doesn't sound like what I'm looking for.
How to Start the PyQt5 Designer tool. Go to C:\Program Files (x86)\Python36-32\Lib\site-packages\pyqt5-tools and locate designer.exe . Double click to open the Qt Designer. Note: The path will vary based on the OS you're using.
The PyQt installer comes with a GUI builder tool called Qt Designer. Using its simple drag and drop interface, a GUI interface can be quickly built without having to write the code. It is however, not an IDE such as Visual Studio.
Open Qt Creator and go to Tools->Options->Environment->External Tools . Click Add->Add category and create a new category (for example, Python ). Then, select the created category and click Add->Add Tool to create a new tool - RunPy for example.
I struggled with this as well. The pyqt5-tools
approach is cumbersome so I created a standalone installer for Qt Designer. It's only 40 MB. Maybe you will find it useful!
The Qt designer is not installed with the pip
installation.
You can either download the full download from sourceforge (probably won't be the last pyqt release, and might be buggy on presence of another installation, like yours) or install it with another (unofficial) pypi
package - pyqt5-tools (pip install pyqt5-tools
), then run the designer from the following subpath of your python directory -
...\Python36\Lib\site-packages\pyqt5-tools\designer\designer.exe
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