Doc: add note that hiding a window doesn't close a full screen space

Fixes: QTBUG-52450
Pick-to: 6.2 5.15
Change-Id: I3f819bac470b5a883a74fb58f6fa2d27740eaaf2
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Volker Hilsheimer 2021-09-03 11:33:09 +02:00
parent 4107609c4e
commit 2c6de9c099

View File

@ -631,6 +631,13 @@ QWindow::SurfaceType QWindow::surfaceType() const
By default, the window is not visible, you must call setVisible(true), or By default, the window is not visible, you must call setVisible(true), or
show() or similar to make it visible. show() or similar to make it visible.
\note Hiding a window does not remove the window from the windowing system,
it only hides it. On windowing systems that give full screen applications a
dedicated desktop (such as macOS), hiding a full screen window will not remove
that desktop, but leave it blank. Another window from the same application
might be shown full screen, and will fill that desktop. Use QWindow::close to
completely remove a window from the windowing system.
\sa show() \sa show()
*/ */
void QWindow::setVisible(bool visible) void QWindow::setVisible(bool visible)