1、file》setting找到
2、填入參數
①program中的路徑是你的pyuic5.exe 的安裝目錄
②arguments中填入 $FileName$ -o $FileNameWithoutExtension$.py 這段代碼可以讓你自動將你的.ui文件轉換爲.py文件(不用手動設置.py的文件名)
③working directory中填入$FileDir$。
3、使用
右鍵ui文件選擇最下面的external tool 即可。
參考:
https://www.w3xue.com/exp/article/20226/79577.html#_label1