parent
73b94edb2f
commit
f6dc1d2f05
@ -0,0 +1,35 @@
|
||||
#include "communication_question.h"
|
||||
#include "ui_communication_question.h"
|
||||
#include "communication.h"
|
||||
Communication_question::Communication_question(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::Communication_question)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->back->setStyleSheet("QPushButton{border-radius:5px;background:rgb(255,43,89);color:black;}");
|
||||
}
|
||||
|
||||
Communication_question::~Communication_question()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void Communication_question::on_back_clicked()
|
||||
{
|
||||
Communication *back = new Communication;
|
||||
back->set_background();
|
||||
back->show();
|
||||
delete this;
|
||||
}
|
||||
|
||||
void Communication_question::set_background2()
|
||||
{
|
||||
this->setWindowTitle("社区界面");
|
||||
this->setMinimumSize(1480,880);
|
||||
this->setMaximumSize(1480,880);
|
||||
this->setAutoFillBackground(true);
|
||||
QPalette palette;
|
||||
QPixmap pixmap = QPixmap(":/image/背景_home.png").scaled(this->size());
|
||||
palette.setBrush(QPalette::Window, QBrush(pixmap));
|
||||
this->setPalette(palette);
|
||||
}
|
||||
Loading…
Reference in new issue