window:添加初始大小根据屏幕适应。
This commit is contained in:
parent
ed94e1cb10
commit
0d42b849a7
@ -4,6 +4,7 @@
|
||||
#include <QFile>
|
||||
#include <QKeyEvent>
|
||||
#include <QDateTime>
|
||||
#include <QScreen>
|
||||
#include <QRegularExpression>
|
||||
#include <filesystem>
|
||||
#include "src/data_edit.h"
|
||||
@ -18,8 +19,13 @@ MainWidget::MainWidget(QWidget* parent) : QWidget(parent), ui(new Ui::MainWidget
|
||||
setWindowTitle(u8"OneLevelXmlOpr v1.2.9");
|
||||
setWindowIcon(QIcon("://resource/xml.ico"));
|
||||
|
||||
setMinimumWidth(900);
|
||||
setMinimumHeight(800);
|
||||
|
||||
QScreen* primaryScreen = QGuiApplication::primaryScreen();
|
||||
QRect screenGeometry = primaryScreen->geometry();
|
||||
setMinimumWidth(screenGeometry.width() * 0.5);
|
||||
setMinimumHeight(screenGeometry.height() * 0.8);
|
||||
// setMinimumWidth(900);
|
||||
// setMinimumHeight(800);
|
||||
|
||||
width_.push_back(280);
|
||||
for (int i = 0; i < 30; ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user