代码写在了窗体的构造函数处,所以没有写对象名
QPixmap pixmap(":/img/aa.bmp");
QPalette palette;
palette.setBrush(backgroundRole(), QBrush(pixmap));
setPalette(palette);