设置颜色:
QPalette palette = this->palette();
palette.setColor(QPalette::Active , QPalette::Window, QColor(51, 153, 254));
palette.setColor(QPalette::Inactive , QPalette::Window, QColor(51, 153, 254));
this->setPalette(palette);
this->setAutoFillBackground(true);
QPalette palette;
palette.setBrush(QPalette::Background,QBrush(QPixmap("Resources/titleBar.png")));
this->setPalette(palette);