File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ BorderlessMainWindow::BorderlessMainWindow(QWidget *parent) : QMainWindow(parent
11
11
12
12
mMainWindow = new MainWindow (this );
13
13
setWindowTitle (mMainWindow ->windowTitle ());
14
+ mMainWindow ->statusBar ()->setSizeGripEnabled (true );
15
+ mMainWindow ->setWindowFlags (Qt::FramelessWindowHint);
14
16
15
17
QVBoxLayout *verticalLayout = new QVBoxLayout ();
16
18
verticalLayout->setSpacing (0 );
@@ -122,9 +124,9 @@ void BorderlessMainWindow::slot_closed() {
122
124
/*
123
125
MainWindow class: put all your code here
124
126
*/
125
- MainWindow::MainWindow (QWidget *parent) : QMainWindow(parent, Qt::FramelessWindowHint), ui(new Ui::MainWindow) {
127
+ MainWindow::MainWindow (QWidget *parent) : QMainWindow(parent/* , Qt::FramelessWindowHint*/ ), ui(new Ui::MainWindow) {
126
128
ui->setupUi (this );
127
- statusBar ()-> setSizeGripEnabled ( true );
129
+
128
130
}
129
131
130
132
MainWindow::~MainWindow () {
You can’t perform that action at this time.
0 commit comments