forked from p54670231/Idea
parent
6c65c43942
commit
1c8f586ad3
@ -0,0 +1,37 @@
|
||||
#include "canada_cat_content.h"
|
||||
#include "ui_canada_cat_content.h"
|
||||
#include "canadian_hairless.h"
|
||||
Canada_cat_content::Canada_cat_content(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::Canada_cat_content)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
Canada_cat_content::~Canada_cat_content()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void Canada_cat_content::on_back_clicked()
|
||||
{
|
||||
Canadian_hairless *back = new Canadian_hairless;
|
||||
back->canadian_book_set_background();
|
||||
back->show();
|
||||
delete this;
|
||||
}
|
||||
void Canada_cat_content::canadian_book_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