From 146749f9b7bbfc0d495a8bd1edd4c6e602d5dcf5 Mon Sep 17 00:00:00 2001 From: Fan RuiJie Date: Thu, 14 Oct 2021 11:10:00 +0800 Subject: QTimer: Add \note in documentation Keeping the event loop busy with a zero-timer like that is bound to cause trouble and highly erratic behavior of the UI. Fixes: QTBUG-96869 Pick-to: 6.1 6.0 5.15 Change-Id: Idf02a7a7e0689c59e1223610a6525262ead56d8d Reviewed-by: Thiago Macieira --- src/corelib/kernel/qtimer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/corelib/kernel/qtimer.cpp') diff --git a/src/corelib/kernel/qtimer.cpp b/src/corelib/kernel/qtimer.cpp index 10e26fcdef..ddd1213f07 100644 --- a/src/corelib/kernel/qtimer.cpp +++ b/src/corelib/kernel/qtimer.cpp @@ -253,6 +253,8 @@ void QTimer::start() If \l singleShot is true, the timer will be activated only once. + \note Keeping the event loop busy with a zero-timer is bound to + cause trouble and highly erratic behavior of the UI. */ void QTimer::start(int msec) { -- cgit v1.2.3