Clarify documentation about aboutToQuit being emitted with main loop running

After 449b45ff34 we emit aboutToQuit
before quitting the main event loop, matching the documentation and
semantics of "about to". Clarify this in the documentation, so that
client do not rely on a missing main event loop to trigger processing
of root level deleteLater() calls in a nested event loop.

Change-Id: Ifd116394a1960814edf69f20c5aaff6a8e5cfc24
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 04b619d950)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tor Arne Vestbø 2023-07-28 13:33:41 +02:00 committed by Qt Cherry-pick Bot
parent 7b6682cfbb
commit 94c9ce85c7

View File

@ -2135,6 +2135,12 @@ void QCoreApplicationPrivate::quit()
last-second cleanup. Note that no user interaction is possible in
this state.
\note At this point the main event loop is still running, but will
not process further events on return except QEvent::DeferredDelete
events for objects deleted via deleteLater(). If event processing is
needed, use a nested event loop or call QCoreApplication::processEvents()
manually.
\sa quit()
*/