#include "aboutWindow.h" #include #include aboutWindow::aboutWindow(QWidget* parent) { ui.setupUi(this); ui.companylname_label->setOpenExternalLinks(true);//设置为true才能打开网页 QString text = ui.companylname_label->text(); ui.companylname_label->setText("" + text); //Qt::WindowFlags flags = 0; ////flags |= Qt::WindowMinimizeButtonHint; //flags |= Qt::WindowCloseButtonHint; //flags |= Qt::MSWindowsFixedSizeDialogHint; //setWindowFlags(flags); setWindowFlags(Qt::FramelessWindowHint); connect(this->ui.closeBtn, SIGNAL(released()), this, SLOT(onExit())); } aboutWindow::~aboutWindow() { } void aboutWindow::onExit() { this->close(); }