安装qtdisigner是真的麻烦: https://blog.csdn.net/qq_33571896/article/details/79507843 讲ui文件映射为py文件的命令: pyuic5 -o showimage.py showimage.ui