赞
踩
界面背景设置:
formObj.setStyleSheet("#MainWindow{border-image:url(./image/background4.png);}")
label字体颜色设置:
self.label.setStyleSheet("color:blue") self.label.setStyleSheet("background-color:gold")
Pyqt5设置窗口背景的3种方法