I'm using a QWebEnginePage class for rendering my webpage. And i need to implement callback function. So first i want to register my slot in JS and call this slot from JS when it needed (for example, after click button on the webpage). I tried to do like there, but it not that i need, because it illustrate only calling JS function from Qt and recieving the result, but i need callback. Is it possible to implement?
in earlier versions of Qt there was a module qtwebkit and my goal could be achieved like discribed there using addToJavaScriptWindowObject method. But how to do that with qtwebenginewidgets module which doesn't have that and even similar method?