Hi, all! In qt we can use the following two functions add our self custom object to javascript world. void QWebFrame::addToJavaScriptWindowObject ( const QString & name, QObject * object, QScriptEngine::ValueOwnership own ) QVariant QWebFrame::evaluateJavaScript ( const QString & scriptSource ) simple code : class MyClass{ public : MyClass(); ~MyClass(); public slots: void jsInterface(); }; MyClass *myObj = new MyClass; web_frame1->addToJavaScriptWindowObject("myJsObj", myObj); web_frame2->addToJavaScriptWindowObject("myJsObj", myObj); we can call myJsObj.jsInterface() in both web_frame1 and web_frame2 , but I can not identify which frame (is web_frame1 or web_frame2 ?)is calling the myJsObject object. I think we should get the js env world in MyClass , but it seems that there's no interface to get the purpose.
The Qt port has been removed from WebKit, resolving.