How Can Call C++ Function in WebView Javascript?
Unsolved
Qt WebKit
-
wrote on 7 Jun 2016, 05:20 last edited by
Hi,
I have webView that connect to server and run a html page I need to share function to to be callable inside javascript .
How can i do this ? -
Hi,
I have webView that connect to server and run a html page I need to share function to to be callable inside javascript .
How can i do this ?wrote on 28 Jun 2016, 14:38 last edited byUse QObject bridge:
http://doc.qt.io/qt-4.8/qtwebkit-bridge.html
After you add qobject-derived object to JS you can call its slots, signals or invocable methods