Install qt designer in linux

How to install QtDesigner?

I just installed Qt 5.4.1 on Windows 7. And there is no QtDesigner. Also there is no QtDesigner in MaintenanceTool.
How can I install it?

You can find the designer.exe in the bin folder of your Qt installation (e.g. C:\Qt\5.4\msvc2013_64\bin)

Like I said the file is named designer.exe and not QtDesigner.exe. The QtDesigner.dll belongs to the package as well.

10 Answers 10

You can install and find QT Designer as follows (Windows environment):

  • Install latest QT (I’m using 5.8) from QT main site
  • Make sure you include «Qt 5.8 MinGW» component
  • QT Designer will be installed in C:\Qt\5.8\mingw53_32\bin\designer.exe
  • Note that the executable is named «designer.exe»

UPDATE — there is an easier way to install QT Designer without downloading GB’s of data from QT:

  • Install the latest version of «pyqt5-tools» using pip install pyqt5-tools —pre
  • The «designer.exe» will be installed in . Lib\site-packages\pyqt5_tools

For an even smaller download, try my standalone installer. It’s less than 40MB and doesn’t even require Python.

I’ve always used the pyqt5-tools method, but today I noticed that it downgraded my PyQt from 5.12.2 to 5.11.3 which was beyond my intent. Switched to @MichaelHerrmann’s standalone installer for the time being.

@AntonyHatchkins, according to pyqt5-tools issue #26 it should work providing the —pre flag, but I haven’t tested this myself.

If you are on macOS and use brew you may have installed qt already using brews installer.

In that case you already have QT Designer installed even though it is not mentioned anywhere.

Читайте также:  Драйвера вай фай linux

You can find it here: /usr/local/Cellar/qt//libexec/Designer.app

So to place it in your local apps folder you can create a symlink to it like this:

ln -sf /usr/local/Cellar/qt/5.11.1/libexec/Designer.app ~/Applications/. 

I was struggling to find the download page, and thanks to your answer just tried, and my Mac found it itself. No clue where it came from, as I didn’t use brew (at least not knowingly). Looks like everything was installed automatically by PyCharm.

Install QtDesigner on windows:

install designer on Linux:

It can be installed using the apt package manager

sudo apt-get install python-qt4 qt4-designer 

run the command designer and it will work for you

if it doesn’t try /usr/bin/designer

enter image description here

it worked for me i am using python 3.6 with pyqt-5.16

It is there. Create a form, click on the .ui file and it opens automatically.

Install the latest version of «pyqt5-tools» using pip install pyqt5-tools —pre

Then run the command (designer.exe) then you are good

run the following commands in the given sequence

then press Enter. This opens Qt Designer window.

As of January 2023, the official Qt website does not provide Qt Designer as a standalone Application. Qt Designer can be obtained from:

  • Qt Creator + Qt base package
    • Offline installer for Qt Creator (Qt account required, has integrated Designer)
    • Online installer (Qt account required)
      Custom Installation, select component
      Qt—>—>
    • aqtinstall(NO account needed)

    In all official installations, the standalone designer.exe is located in the Qt bin folder (for Windows usually C:\Qt\\\bin ).

    Third party standalone applications
    (potentially outdated)

    For Qt newcomers, using Designer in Creator may be the better choice as it is very straightforward. Advanced users looking to set up a custom build infrastructure may be interested in aqtinstall instead.

    Expanding StonyBoy answer. If you are on macOS, you have installed Qt5 with brew , and you want to access the Qt5 Designer app via command line (like on Linux), you can set a symlink to the actual executable as well, like this:

    ln -sf /usr/local/Cellar/qt/5.13.1/libexec/Designer.app/Contents/MacOS/Designer /usr/local/opt/qt/bin/designer 

    This way, the designer command will be placed in the bin folder, together with the other Qt5 executables (as qmake ). Thus, you will be able to launch it simply by typing designer in your shell.

    Note: of course you must have the path of the Qt5 bin/ folder added to your PATH environmental variable, for being able to directly call designer in the shell. But brew added it for you when you installed Qt5.

    Источник

    How to install and run qt-designer for python

    I’m new to ubuntu, I entered the following commands sudo apt-get install python-pyqt and sudo apt-get install qt-designer .
    Both the commands executed successfuly but I’m not able to figure out how to launch the qt-designer program.

    4 Answers 4

    Considering the packages names did dramatically change, the procedure with Ubuntu 20.04 is now:

    sudo apt-get install qttools5-dev-tools sudo apt-get install qttools5-dev 

    Then, Qt Designer is installed as designer , and is also in the start menu.

    with sudo apt-get install python-qt4 qt4-designer should work.

    You can find it if you search it with apt-cache search qt | grep designer :

    libqt4-designer - Qt 4 designer module libqt4-designer-dbg - Qt 4 designer library debugging symbols qt4-designer - graphical designer for Qt 4 applications kdesignerplugin - Integration of KF5 widgets in Qt Designer/Creator kdesignerplugin-data - Integration of KF5 widgets in Qt Designer/Creator kgendesignerplugin - Integration of KF5 widgets in Qt Designer/Creator libopenrpt-dev - graphical SQL report writer, designer and rendering engine (development) libopenrpt1v5 - graphical SQL report writer, designer and rendering library libqscintilla2-designer - Qt4 Designer plugin for QScintilla 2 libqscintilla2-designer-dbg - Qt4 Designer plugin for QScintilla 2 (debug) libqt5designer5 - Qt 5 designer module libqt5designercomponents5 - Qt 5 Designer components module libqt5scintilla2-designer - Qt5 Designer plugin for QScintilla 2 libqt5scintilla2-designer-dbg - Qt5 Designer plugin for QScintilla 2 (debug) libqxt-designer0 - LibQxt extensions to Qt Designer openrpt - graphical SQL report writer, designer and rendering engine 

    And search more info about the package with apt-cache show qt4-designer .

    Источник

    [Linux ] Use Qt Designer to develop Python GUI program in Ubuntu 18.04

    If you want to develop a Python GUI program, choose PyQt5 is a great choice. In the past, I recorded about how to configure the Qt Designer in PyCharm on Windows. ([PyQt5] Tutorial(1) Install PyQt5 and print «Hello World!»)

    If you want to know more about PyQt5, you can refer to here: https://pypi.org/project/PyQt5/

    The installation method in Linux system is actually simpler, the following is a simple record.

    Installation of Qt Designer

    Before we start, we need to install the following packages:

    sudo apt-get install qt5-default sudo apt-get install qttools5-dev-tools sudo pip3 install pyqt5

    After installing, use the following command to open Qt Designer:

    Let’s place a QLabel component in the window, and use ctrl+s to save it, named it UI.ui .

    Of course we are not use Python to execute it, we need to convert it from xml format to Python code:

    pyuic5 can convert UI files to .py files so that we can read them normally.

    from PyQt5 import QtWidgets from UI import Ui_MainWindow import sys class MainWindow(QtWidgets.QMainWindow): def __init__(self): super(MainWindow, self).__init__() self.ui = Ui_MainWindow() self.ui.setupUi(self) self.ui.label.setText('Hello World!') if __name__ == '__main__': app = QtWidgets.QApplication([]) window = MainWindow() window.show() sys.exit(app.exec_()) 

    Share this:

    Источник

Оцените статью
Adblock
detector