Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyQt5: How to install/run Qt Designer

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.

like image 918
User1291 Avatar asked Feb 07 '17 13:02

User1291


People also ask

How do I run a pyqt5 designer?

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.

Is Qt Designer part of pyqt5?

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.

How do I use Qt Creator in Python?

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.


2 Answers

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!

like image 70
Michael Herrmann Avatar answered Sep 19 '22 17:09

Michael Herrmann


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 
like image 39
Uriel Avatar answered Sep 22 '22 17:09

Uriel