第一阶段初稿+修复部分内容
This commit is contained in:
@ -17,18 +17,13 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
//delete desktopWidget;
|
||||
mainWindowLayout=new MainWindowLayout(this);
|
||||
setCentralWidget(mainWindowLayout);
|
||||
if(deskRect.width()*scale>1920){
|
||||
resize(1600,1080);
|
||||
//this->setMaximumWidth(1600);
|
||||
}else{
|
||||
resize(800, 540);
|
||||
//this->setMaximumWidth(800);
|
||||
}
|
||||
setWindowState(Qt::WindowMaximized);
|
||||
|
||||
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow() {
|
||||
this->setCentralWidget(nullptr);
|
||||
delete mainWindowLayout;
|
||||
delete ui;
|
||||
}
|
||||
|
Reference in New Issue
Block a user