Qt Designer Download
Install Qt Designer on Windows or Mac.
Tiny download: Only 40MB!
Many people want to use Qt Designer without having to download gigabytes of other software. Here are small, standalone installers of Qt Designer for Windows and Mac:
If you encounter any problems, please just send us an email. We’d be happy to help.
What is Qt Designer?
Qt Designer is a tool for quickly building graphical user interfaces with widgets from the Qt GUI framework. It gives you a simple drag-and-drop interface for laying out components such as buttons, text fields, combo boxes and more. Here is a screenshot of Qt Designer on Windows:
Qt Designer produces .ui files. This is a special XML-based format that stores your widgets as a tree. You can either load these files at runtime, or have them translated to a programming language such as C++ or Python.
Qt Designer vs. Qt Creator
Qt Designer normally ships as a part of Qt Creator. This is Qt’s official editor and lets you do a lot more than just graphically design user interfaces. It is a full-fledged and very powerful C++ IDE. This power comes at a price however: The download for Qt Creator is gigabytes in size!
This page was created for people who only need Qt Designer. The download links here contain minimal, self-contained installers of just Qt Designer that are orders of magnitude smaller. Here they are again:
Qt Designer and Python
Many people like to use Qt Designer together with Python because it is a dynamic language that lends itself well to rapid prototyping.
The easiest way to combine Qt Designer and Python is via the PyQt binding. To install PyQt, simply enter the following on the command line:
(This assumes you have Python 3 installed.)
Suppose you have saved your file from Qt Designer as dialog.ui . Then you can create another file, say main.py , with the following contents:
When you then invoke python main.py on the command line, your dialog should open:
If you want to learn more about combining Qt with Python, you may be interested in my book:
It distills years of experience to quickly help you create better GUI applications. I’m humbled to say that even Phil Thompson, the creator of PyQt, read it and thinks it’s «very good».
Michael has been working with Qt and Python since 2016, when he started fman, a cross-platform file manager. Frustrated with the difficulties of creating a desktop app, Michael open sourced fman’s build system (fbs). It saves you months when creating Python Qt GUIs. Recently, Michael also wrote a popular book about these two technologies.
Источник
Where is Qt designer app on Mac + Anaconda?
I am trying to find Qt designer app on Mac. I installed anaconda package and conda reports that qt, sip, and pyqt are installed. Still I couldn’t find the designer app in any of the folders. My Python app that uses pyqt works perfectly. I’m very new to macs and probably missing something very simple.
I did search folder tree for anything named designer. I found QtDesigner.so (supposed to be executable?) at /Users/XXXX/anaconda/pkgs/pyqt-4.10.4-py27_0/lib/python2.7/site-packages/PyQt4 but it won’t even run saying «cannot execute binary file» anaconda/bin doesn’t have it.
There’s a folder anaconda/include/QtDesigner but noting I can run /anaconda/pkgs/qt-4.8.5-3/bin — no designer. I’m totally confused now.
8 Answers 8
You can try open -a Designer from your terminal to launch Qt Designer that comes with Anaconda (version 4.x).
If you have Qt5.x, you may want to launch a newer version of Designer by open -a Designer-qt5 .
I expect it’s Qt Creator that you should be looking for. Note here: —
the integration of Qt Designer under Qt Creator is first mentioned at least as early as Qt 4.7 (ca. late 2011)
Qt Creator includes a code editor and integrates Qt Designer for designing and building graphical user interfaces (GUIs) from Qt widgets.
If it’s not in your distribution, you can download it separately here.
OSX Yosemite 10.10.5
Qt 5.6
QtCreator 3.6.1
QtDesigner is part of my QtCreator. To use QtDesigner:
Launch QtCreator, and from the menu bar (outside QtCreator), click on: File>New File or Project
You will be presented with a New File or Project dialog window. In the Files And Classes section, select Qt . In the middle pane, select QtDesigner Form . Then click on the Choose button in the lower right corner.
You will be presented with a QtDesigner Form dialog window. Then you can select Main Window or Dialog with Buttons Bottom , etc. Then click on the Continue button in the lower right corner.
In the Location dialog window, use a name like mainwindow1.ui, and for the path you might want to step aside and create a directory called forms, e.g. $ mkdir /Users/7stud/qt_projects/forms , then enter that as the path.
Enter any other details and click on Done . That will land you in QtCreator with the Design button selected (which I guess means you are in QtDesigner), and you will be able to drag and drop widgets onto your window.
To convert the .ui file to a .py file that you can import into your python program:
$ pyuic5 mainwindow1.ui -o mainwindow1.py
-o => output file (default is stdout)
That command converts the .ui file mainwindow1.ui to a .py file named mainwindow1.py.
Источник