fix(src/windows): 修改初始状态未监听屏幕变化的bug

This commit is contained in:
youdiansaodongxi 2024-07-25 14:00:01 +08:00
parent 0028840607
commit af3d36da73
1 changed files with 1 additions and 0 deletions

View File

@ -232,6 +232,7 @@ void MenuWindow::init()
}
});
setScreen(QGuiApplication::primaryScreen());
connect(screen(), &QScreen::geometryChanged, this, &MenuWindow::updateGeometry);
setTitle(QCoreApplication::applicationName());
setResizeMode(SizeRootObjectToView);