parent
be2130a6e4
commit
c1857f9678
@ -0,0 +1,39 @@
|
||||
#include "silver_cat_content.h"
|
||||
#include "ui_silver_cat_content.h"
|
||||
#include "silver_gradient.h"
|
||||
Silver_cat_content::Silver_cat_content(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::Silver_cat_content)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
Silver_cat_content::~Silver_cat_content()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void Silver_cat_content::on_back_clicked()
|
||||
{
|
||||
Silver_gradient *back = new Silver_gradient;
|
||||
back->silver_book_set_background();
|
||||
back->show();
|
||||
delete this;
|
||||
}
|
||||
|
||||
void Silver_cat_content::set_background()
|
||||
{
|
||||
this->setWindowTitle("银渐层");
|
||||
// ui->label->setStyleSheet("background-color:red");//背景色
|
||||
|
||||
this->setMinimumSize(1280,720);
|
||||
this->setMaximumSize(1280,720);
|
||||
|
||||
this->setAutoFillBackground(true);
|
||||
QPalette palette;
|
||||
QPixmap pixmap = QPixmap(":/image/背景_book.png").scaled(this->size());
|
||||
palette.setBrush(QPalette::Window, QBrush(pixmap));
|
||||
this->setPalette(palette);
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in new issue