Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

[[qanda:topic_unsolved]] QWebEngine - how to catch execution of any javascripts from C++

$
0
0

I know how to communicate between C++ and Javascript in Qt WebEngine from this tutorial: https://myprogrammingnotes.com/communication-c-javascript-qt-webengine.html

But that is a case when I'm the author of loaded page so C++ and HTML parts are programmed by me. But is it possible to catch any javascript executed on any page loaded (like google.com etc)? Some kind of signal emitted when JS is executed so I could investigate function name and input args. QWebEnginePage->QWebEngineScriptCollection->scripts() return only my own injected scripts, it doesn't contain page scripts.

Regards


Viewing all articles
Browse latest Browse all 13965

Trending Articles