From e1c9023eadea13517b6cb7e80d0ed14b350058b1 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Tue, 20 Jul 2021 17:33:04 +0800 Subject: [PATCH] Add two important notes Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- README.md | 2 ++ README_win32.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 5574888..5ded0ad 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,8 @@ FramelessWindowsManager::setHitTestVisibleInChrome(win, ui->pushButton_minimize, - For [QDockWidget](https://doc.qt.io/qt-6/qdockwidget.html), it supports set a custom title bar widget officially, no need to use this library, and this library is known to be not working well for QDockWidgets. Please refer to for more details. - Only top level windows ([QWindow](https://doc.qt.io/qt-6/qwindow.html) and [QWidget](https://doc.qt.io/qt-6/qwidget.html)) are supported. +- Win32: There are some known issues when DWM composition is disabled. This is unsupported and not tested and will not be fixed. However, PRs are always welcome. +- Win32: You must enable high DPI scaling for your application otherwise some Win32 APIs may return wrong value and thus it may result in unexpected behavior. ## Supported Platforms diff --git a/README_win32.md b/README_win32.md index e6ee88d..1c45f29 100644 --- a/README_win32.md +++ b/README_win32.md @@ -50,6 +50,8 @@ win->setFlag(Qt::MSWindowsFixedSizeDialogHint); - For [QDockWidget](https://doc.qt.io/qt-6/qdockwidget.html), it supports set a custom title bar widget officially, no need to use this library, and this library is known to be not working well for QDockWidgets. Please refer to for more details. - Only top level windows ([QWindow](https://doc.qt.io/qt-6/qwindow.html) and [QWidget](https://doc.qt.io/qt-6/qwidget.html)) are supported. +- There are some known issues when DWM composition is disabled. This is unsupported and not tested and will not be fixed. However, PRs are always welcome. +- You must enable high DPI scaling for your application otherwise some Win32 APIs may return wrong value and thus it may result in unexpected behavior. ## Supported Platforms