diff --git a/src/activeqt/control/qaxserverbase.cpp b/src/activeqt/control/qaxserverbase.cpp index aca14c34a46c3ba525059b6a685e9e059b72ed74..73a7679d7085d50c8016f8b11af4fa4ffc62a4e2 100644 --- a/src/activeqt/control/qaxserverbase.cpp +++ b/src/activeqt/control/qaxserverbase.cpp @@ -878,6 +878,11 @@ public: qax_hhook = SetWindowsHookEx(WH_GETMESSAGE, axs_FilterProc, 0, GetCurrentThreadId()); } + // If we created QApplication instance, ensure native event loop starts properly + // by calling processEvents. + if (qax_ownQApp) + qApp->processEvents(); + HRESULT res; // Create the ActiveX wrapper - aggregate if requested if (pUnkOuter) {