QWindowPrivate::forwardToPopup() sends key events with QCoreApplication::sendEvent(), which sets QEvent::m_spont to false. That makes key and pointer events sent to popups appear synthetic, while they are sponaneous if sent to other widgets. The method has been newly implemented in the course of moving popup handling from QApplication to QGuiApplication. Make current behavior consistent to the behavior prior to e4ef0f03e6f1fddc397980fd7fbf6f6b829f16d9. Since events are always spontaneous, use QCoreApplication::sendSpontaneousEvent() instead. Add a test function to tst_QComboBox to Verify, that key events - are sent directly to the popup - not seen by the window - appear as spontaneous. This amends e4ef0f03e6f1fddc397980fd7fbf6f6b829f16d9. Fixes: QTBUG-129258 Pick-to: 6.8.0 Change-Id: Iff61b98b290f6483948007b5f12b19393759d9db Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 3fbae61ea245291cb4c34e9126562c307741a600) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%