diff options
author | Andy Shaw <andy.shaw@qt.io> | 2021-05-31 15:39:11 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-07-05 09:18:13 +0000 |
commit | e9b29c5d262847256791956bf8a4b741cb6a1546 (patch) | |
tree | 1d408f64e61b9b5e48ee70ff06a6f5e2b66a96b5 /src/widgets/widgets | |
parent | 9572473e4f63fbf5edd117a93c6c04fc4f6cf3e9 (diff) |
Doc: Add a note about a limitation in QDockWidget on macOS
Change-Id: I3599304d2dab9a6e64f110644b22e65494f3c0a8
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
(cherry picked from commit e5aada1ba7133dedc7ec00e67c5cca68186b738d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/widgets/widgets')
-rw-r--r-- | src/widgets/widgets/qdockwidget.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widgets/widgets/qdockwidget.cpp b/src/widgets/widgets/qdockwidget.cpp index 0feb3222f3..b391f278b2 100644 --- a/src/widgets/widgets/qdockwidget.cpp +++ b/src/widgets/widgets/qdockwidget.cpp @@ -1236,6 +1236,11 @@ void QDockWidgetPrivate::setWindowState(bool floating, bool unplug, const QRect on whether it is docked; a docked QDockWidget has no frame and a smaller title bar. + \note On macOS, if the QDockWidget has a native window handle (for example, + if winId() is called on it or the child widget), then due to a limitation it will not be + possible to drag the dock widget when undocking. Starting the drag will undock + the dock widget, but a second drag will be needed to move the dock widget itself. + \sa QMainWindow, {Dock Widgets Example} */ |