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

This commit is contained in:
youdiansaodongxi 2024-07-25 14:00:01 +08:00
parent 7edccdf553
commit 18f59fb5a4
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);