From ff4556438b79ffe89c5f1e7e5aa80a40d8714b3c Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Sat, 17 Oct 2020 13:12:17 +0800 Subject: [PATCH] Update documentation. Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- README_win32.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README_win32.md b/README_win32.md index d24e682..85437cb 100644 --- a/README_win32.md +++ b/README_win32.md @@ -40,8 +40,6 @@ Please refer to [the QWidget example](/examples/QWidget/main.cpp) for more detai ```cpp WinNativeEventFilter::WINDOWDATA data = {}; -// The window can't be resized if fixedSize is set to true. -data.fixedSize = false; // All the following values should not be DPI-aware, just use the // original numbers, assuming the scale factor is 1.0, don't scale // them yourself, this code will do the scaling according to DPI @@ -72,6 +70,8 @@ if (data) { data->borderHeight = 5; data->titleBarHeight = 30; } +// The frameless window is resizable by default. +WinNativeEventFilter::setWindowResizable(reinterpret_cast(mainWindow->winId()), false); ``` ## Supported Platforms