diff options
author | Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com> | 2015-10-13 16:13:30 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-10-16 12:13:39 +0000 |
commit | e9835a3812f91fc4a948a606fd751382d4ecf248 (patch) | |
tree | 13fb1f107e554d8f3ed9c1025c3ebfe0caf25bd8 /src/gui | |
parent | b37a548d083cf686cc6212fe9345c06406091f45 (diff) |
Document that QWindow::fromWinId() should be used with caution
Change-Id: I28c58fb720c323048615efe677a920f179ef9d20
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qwindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp index 9ca5d3e9f8..dbacfba4a8 100644 --- a/src/gui/kernel/qwindow.cpp +++ b/src/gui/kernel/qwindow.cpp @@ -2382,6 +2382,11 @@ QWindow *QWindowPrivate::topLevelWindow() const If foreign windows are not supported, this function returns 0. + \note The resulting QWindow should not be used to manipulate the underlying + native window (besides re-parenting), or to observe state changes of the + native window. Any support for these kind of operations is incidental, highly + platform dependent and untested. + \sa setParent() \sa setTransientParent() */ |