Sine Striker
2023-12-20 669ea85c57567624e687d92898266f78bb55f1fa
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.