You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
926 B
40 lines
926 B
#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);
|
|
|
|
}
|
|
|