From 28f143c5b3c735faa88f9789743729d8933404be Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 周二, 19 12月 2023 19:40:17 +0800
Subject: [PATCH] add win32 raise window

---
 examples/mainwindow/mainwindow.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/examples/mainwindow/mainwindow.cpp b/examples/mainwindow/mainwindow.cpp
index 8b32fe7..c3c133b 100644
--- a/examples/mainwindow/mainwindow.cpp
+++ b/examples/mainwindow/mainwindow.cpp
@@ -42,6 +42,7 @@
     }
 
     setWindowTitle(tr("Example MainWindow"));
+    resize(800, 600);
 }
 
 static inline void emulateLeaveEvent(QWidget *widget) {
@@ -106,6 +107,10 @@
 
 void MainWindow::installWindowAgent() {
     // 1. Setup window agent
+    
+    // Equivalent to:
+    // auto agent = new QWK::WidgetWindowAgent(w);
+    // agent->setup(w);
     QWK::WidgetWindowAgent *agent = QWK::setupWidgetWindow(this);
 
     // 2. Construct your title bar

--
Gitblit v1.9.1