Getting Webview2 keypress using QAxWidget

  activex, c++, qt, webview2

I’m trying handle key press event from my webview2 inside a Qt widget since the WebView2 control is based on the Component Object Model (COM). I’m trying to use ICoreWebView2Controller as IUnknown to wrap this inside a QAxObject or QAxWidget to get access to the COM object and fetch the webview event from my main window event handler.

Do you have any idea on how to handle this ?

Source: Windows Questions C++