#include "msgwidget.h" #include "ui_msgwidget.h" MSGWidget::MSGWidget(QWidget *parent) : QDialog(parent), ui(new Ui::MSGWidget) { ui->setupUi(this); setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint); setAttribute(Qt::WA_TranslucentBackground); ui->label->setWordWrap(true); } MSGWidget::~MSGWidget() { delete ui; } void MSGWidget::SetText(QString strShow) { ui->label->setText(strShow); }