我是 ubuntu 新手,我输入了以下命令
sudo apt-get install python-pyqt
和sudo apt-get install qt-designer
。
两个命令都成功执行,但我不知道如何启动该qt-designer
程序。
答案1
答案2
应该sudo apt-get install python-qt4 qt4-designer
可以工作。
你可以通过以下方式搜索找到它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
并使用 搜索有关该包的更多信息apt-cache show qt4-designer
。
答案3
在终端上输入
designer-qt4
或者如果 /usr/bin 不包含在你的 PATH 中:
/usr/bin/designer-qt4
答案4
要搜索可用的包,请运行:
apt-cache search qt*designer
这将输出:
libqt4-designer - Qt 4 designer module
libqt5designer5 - Qt 5 designer module
python-pyqt5 - Python 2 bindings for Qt5
python3-pyqt5 - Python 3 bindings for Qt5
然后安装你需要的软件包:
sudo apt install libqt5designer5 python3-pyqt5