diff --git a/src/widgets/kernel/qtooltip.cpp b/src/widgets/kernel/qtooltip.cpp index 387aa476de4..a8180dd252c 100644 --- a/src/widgets/kernel/qtooltip.cpp +++ b/src/widgets/kernel/qtooltip.cpp @@ -321,7 +321,7 @@ bool QTipLabel::eventFilter(QObject *o, QEvent *e) break; -#if defined (Q_OS_QNX) // On QNX the window activate and focus events are delayed and will appear +#if defined (Q_OS_QNX) || defined (Q_OS_WASM) // On QNX the window activate and focus events are delayed and will appear // after the window is shown. case QEvent::WindowActivate: case QEvent::FocusIn: