Doc: link to QWindow::requestActivate() in more places

Make it easier to find the function that actually gives focus to
windows that need it.

Pick-to: 6.5
Change-Id: I0586b89b42a1be260e36e166c81b686e394d8b5e
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
This commit is contained in:
Mitch Curtis 2023-03-29 10:58:24 +08:00
parent b1b0f42c97
commit a94ba94695
2 changed files with 4 additions and 0 deletions

View File

@ -948,6 +948,8 @@ bool QGuiApplicationPrivate::isWindowBlocked(QWindow *window, QWindow **blocking
/*!
Returns the QWindow that receives events tied to focus,
such as key events.
\sa QWindow::requestActivate()
*/
QWindow *QGuiApplication::focusWindow()
{

View File

@ -1258,6 +1258,8 @@ bool QWindow::isExposed() const
Typically active windows should appear active from a style perspective.
To get the window that currently has focus, use QGuiApplication::focusWindow().
\sa requestActivate()
*/
bool QWindow::isActive() const
{