Compose pointer to property of object
Solved
General and Desktop
-
@jsulm
Yes - Thanks . Problem loacted, but not yet solved:void QTGUI_MainWindow::populateJavaScriptWindowObject() { QWebView * webGUI = qobject_cast<QWebView *>(sender()); webGUI->page()->mainFrame()->addToJavaScriptWindowObject("NativeBridge", this); }
The sender is the JS and not the QWebView and so I do not get the pointer to the QWebView that I need. Instead, the pointer is 0x0 and then - of course - the addToJ... crashes.
Any idea how I get the pointer to the QWebView from which the JS is sending?
Thanks -
What is JS?