赞
踩
在窗口的构造函数内添加
this->setWindowFlags(Qt::FramelessWindowHint);
#include <QDesktopWidget> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); //无边框 this->setWindowFlags(Qt::FramelessWindowHint); //显示任务栏 this->setGeometry(QApplication::desktop()->availableGeometry()); this->showMaximized(); }
this->setWindowFlags(Qt::FramelessWindowHint|Qt::WindowSystemMenuHint|
Qt::WindowMinimizeButtonHint|Qt::WindowMaximizeButtonHint);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。