From 8e703f6e21bb560d6fba7df3bfb5b1805d44d1da Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Tue, 16 Jul 2024 11:20:48 +0200 Subject: [PATCH] Touch event dispatching: change qCWarning to qCDebug if no target window Warning messages are by default emitted for qt.* logging categories. But neither the end user nor the application developer can do anything about this particular warning (which gets emitted on macOS when using the touch pad) - it's only useful for Qt developers. So change the logging level to debug. Pick-to: 6.7 6.5 Fixes: QTBUG-125589 Change-Id: I36e6e553494054488209139e3238b7bd11bd170a Reviewed-by: Shawn Rutledge (cherry picked from commit 2b021b2f927eaabbb3b7892b3dfe35d41368cf32) Reviewed-by: Qt Cherry-pick Bot --- src/gui/kernel/qguiapplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index f11193055e1..013993b3f88 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -3102,7 +3102,7 @@ void QGuiApplicationPrivate::processTouchEvent(QWindowSystemInterfacePrivate::To } // If we somehow still don't have a window, we can't deliver this touchpoint. (should never happen) if (Q_UNLIKELY(!window)) { - qCWarning(lcPtrDispatch) << "skipping" << &tempPt << ": no target window"; + qCDebug(lcPtrDispatch) << "skipping" << &tempPt << ": no target window"; continue; } QMutableEventPoint::update(tempPt, ep);