Skip to content

Commit 1a5462d

Browse files
committed
update README
1 parent ecd08c3 commit 1a5462d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,9 @@ See [examples](examples) for more demo use cases. The examples have no High DPI
259259
### Vulnerabilities
260260

261261
+ Once you have made the window frameless, it will not be able to switch back to the system border.
262-
+ There must not be any child widget with `Qt::WA_NativeWindow` property enabled, otherwise the native features and display may be abnormal. Therefore, do not set any widget that has called `QWidget::winId()` or `QWidget::setAttribute(Qt::WA_NativeWindow)` as a descendant of a frameless window. If you really need to move widgets between different windows, make sure that the widget is not a top-level window and wrap it with a frameless container.
262+
+ There must not be any child widget with `Qt::WA_NativeWindow` property enabled, otherwise the native features and display may be abnormal. Therefore, do not set any widget that has called `QWidget::winId()` or `QWidget::setAttribute(Qt::WA_NativeWindow)` as a descendant of a frameless window.
263+
+ If you really need to move widgets between different windows, make sure that the widget is not a top-level window and wrap it with a frameless container.
264+
+ If you want to show a non-modal dialog as a child of a frameless window, you should call `QGuiApplication::setAttribute(Qt::AA_DontCreateNativeWidgetSiblings)` before the dialog constructs or in the very beginning in the main entry.
263265

264266
## TODO
265267

0 commit comments

Comments
 (0)