pyqt窗口背景图片自适应大小
def resizeEvent(self,event): palette = QtGui.QPalette() pix = QtGui.QPixmap("background.jpg”) pix = pix.scaled(self.width(),self.height()) palette.setBrush(QtGui.QP