From c229915e9d4b2818155f3650869726fdcbe7e21d Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: ćšć, 21 12æ 2023 14:12:26 +0800 Subject: [PATCH] Prepare to add mica --- README.md | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f4aff2a..f5bad1d 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,19 @@ Support as many system native features as possible without requiring additional dependencies. +<!-- ## Why using QWindowKit? + +Here're why `QWindowKit` is better than `FramelessHelper`: + ++ Full support of Windows 11 Snap Layout ++ Most of the redundant codes and architectural flaws are eliminated, and the binary size compiled by MSVC is about 1/9 of `FramelessHelper` ++ A critical issue that moving window forces the entire window to be repainted on Windows is fixed ++ Capable to cope with WinId mutation, and `QWebEngineView` is perfectly supported ++ Simpler APIs, more detailed documentation and comments ++ A lot of bugs are fixed + +Feature requests are welcome. --> + ## Supported Platforms + Microsoft Windows @@ -47,7 +60,7 @@ ## Dependencies -+ Qt 5.15 or higher ++ Qt 5.12 or higher + [qmsetup](https://github.com/stdware/qmsetup) ## Integrate @@ -114,7 +127,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 +142,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