63 lines
1.2 KiB
C++
63 lines
1.2 KiB
C++
#include "maxtu.h"
|
|
#include "ui_maxtu.h"
|
|
#include<QDebug>
|
|
maxtu::maxtu(QWidget *parent) :
|
|
QWidget(parent),
|
|
ui(new Ui::maxtu)
|
|
{
|
|
ui->setupUi(this);
|
|
this->setWindowFlags(Qt::FramelessWindowHint); // 隐藏标题栏
|
|
ui->widget->setFixedHeight(50);
|
|
this->setFixedSize(750,560);
|
|
this->setWindowFlags(Qt::FramelessWindowHint);//去除窗口边框
|
|
setAttribute(Qt::WA_TranslucentBackground);
|
|
}
|
|
|
|
maxtu::~maxtu()
|
|
{
|
|
delete ui;
|
|
}
|
|
void maxtu::getyuan(QPixmap p)
|
|
{
|
|
|
|
ui->label->setPixmap(p);
|
|
ui->label->setScaledContents(true);
|
|
}
|
|
void maxtu::getlujing(QString str1,QString str2)
|
|
{
|
|
qDebug()<<"getlujing"+str1+str2;
|
|
|
|
|
|
ui->label->setPixmap(str1);
|
|
|
|
ui->label->setScaledContents(true);
|
|
|
|
ui->label_2->setPixmap(str2);
|
|
|
|
ui->label_2->setScaledContents(true);
|
|
this->setFixedSize(1500,560);
|
|
//this->setFixedSize(750,560);
|
|
}
|
|
void maxtu::getlujing2(QString str1,QString str2)
|
|
{
|
|
qDebug()<<"getlujing"+str1+str2;
|
|
|
|
|
|
ui->label->setPixmap(str1);
|
|
|
|
ui->label->setScaledContents(true);
|
|
|
|
ui->label_2->setPixmap(str2);
|
|
|
|
ui->label_2->setScaledContents(true);
|
|
this->setFixedSize(1500,800);
|
|
}
|
|
|
|
|
|
|
|
void maxtu::on_pushButton_3_clicked()
|
|
{
|
|
this->close();emit guanmeng();
|
|
}
|
|
|