PDA

View Full Version : QWebView custom JS Classes?



ts230
7th April 2010, 05:17
Is it possible for a HTML page running in an QWebView to call a JS Method from a JS Class that in turn will call a method in the program itself? I am doing this for a store, and I don't want to put the Store JS in the web page itself so people will be forced to use the custom browser instead of their web browsers.
Basically like this:
JS Class "tomato" Should be loaded by the WebView itself instead of it being included in the page. Calling method "squash()" on JS Class "tomato" calls the Qt method showKeyboard() to show the virtual keyboard. Please help!