站內搜尋:Yahoo搜尋的結果,如果沒有給完整的網址,請在站內再搜尋一次!

2020-12-25

如何在Linux Ubuntu Desktop安裝Qt Designer,用來設計python GUI使用者介面程式

ubuntu的版本:20.04.1 (LTS) 1. 確認python3已可以work

2. 安裝PyQt5
sudo apt-get install python3-pyqt5

3. 安裝Qt Designer
sudo apt-get install qttools5-dev-tools
sudo apt-get install qttools5-dev

4. 啟動Qt Designer
cd /usr/lib/x86_64-linux-gnu/qt5/bin
./designer

5. 將透過Qt Designer設計的ui檔,轉換匯出為py檔
pyuic5 /home/userid/workfolder/helloworld.ui -o helloworld.py

如果出現 Command 'pyuic5' not found, but can be installed with:
可以使用以下指令安裝pyuic5 sudo apt install pyqt5-dev-tools

沒有留言:

張貼留言