File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ [ 221_3] 软件首次启动时全屏
2+
3+ ## 如何测试
4+
5+ 1 . 删除缓存。
6+ 2 . 启动软件,查看是否全屏。
7+
8+ ## 2026/04/14 软件首次启动时全屏
Original file line number Diff line number Diff line change 1010 ******************************************************************************/
1111
1212#include " QTMWindow.hpp"
13+ #include " boot.hpp"
1314#include " config.h"
1415#if defined(USE_TUTORIAL)
1516#include " qt_tutorial.hpp"
@@ -148,6 +149,10 @@ QTMWindow::resizeEvent (QResizeEvent* event) {
148149void
149150QTMWindow::showEvent (QShowEvent* event) {
150151 QMainWindow::showEvent (event);
152+ if (install_status == 1 && !property (" startupMaximizedApplied" ).toBool ()) {
153+ setProperty (" startupMaximizedApplied" , true );
154+ showMaximized ();
155+ }
151156#if defined(USE_TUTORIAL)
152157 QWK::FirstLaunchTutorialController::instance ()->maybeStartForMainWindow (
153158 this );
You can’t perform that action at this time.
0 commit comments