summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2020-11-19 10:27:54 -0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-11-20 21:33:21 +0000
commit73e0a5a422f7c484a083c909e3b573429b7c3301 (patch)
tree7ca4a424b82c443ce85a109a8e018a87719598c4
parent720304f70315dcf051c2eba6f48ddf1329419547 (diff)
QCoreApplication: add more information to processEvents() docs
Just shows how bad an idea to call this function it is. Fixes: QTBUG-88653 Change-Id: If51855da004b4f3fbf43fffd1648fc294065160d Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 8ec9a48e80a72c7b9e82107a2c66de6cbf7a02fe) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/corelib/kernel/qcoreapplication.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp
index f761696aea..55316a79de 100644
--- a/src/corelib/kernel/qcoreapplication.cpp
+++ b/src/corelib/kernel/qcoreapplication.cpp
@@ -1300,6 +1300,9 @@ void QCoreApplication::processEvents(QEventLoop::ProcessEventsFlags flags)
\note Unlike the \l{QCoreApplication::processEvents(QEventLoop::ProcessEventsFlags flags)}{processEvents()}
overload, this function also processes events that are posted while the function runs.
+ \note All events that were queued before the timeout will be processed,
+ however long it takes.
+
\threadsafe
\sa exec(), QTimer, QEventLoop::processEvents()