From 74091e049e3975ac1b3c36768c5820f5604354dd Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: 周三, 20 12月 2023 22:32:17 +0800 Subject: [PATCH] add quick isfixedsize --- README.md | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3951ff2..ae739dd 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ } ``` -You can also initialize the agent after the window constructs. +If you don't want to derive a new widget class or change the constructor, you can initialize the agent after the window constructs. ```c++ auto w = new MyWidget(); @@ -129,7 +129,7 @@ Let `WidgetWindowAgent` know which widget the title bar is. ```c++ -agent->setTitleBarWidget(myTitleBar); +agent->setTitleBar(myTitleBar); ``` Next, set system button hints to let `WidgetWindowAgent` know the role of the child widgets, which is important for the Snap Layout to work. -- Gitblit v1.9.1