PyQt5 - WindowIcon设置(运行界面左上角图标)

【Qt-Designer】python 【Coding】ui icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("xxx.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) MainWindow.setWindowIcon(icon)
相关文章
相关标签/搜索