Qt classes bindings for Qt WebKit JavaScriptCore?
-
wrote on 3 Aug 2010, 07:10 last edited by
Are Qt classes exported to javascript core of Qt WebKit? It would be great if I could just call QSqlDatabase class from withing the HTML script.
-
wrote on 3 Aug 2010, 08:02 last edited by
AFAIK they are not exported.
-
wrote on 3 Aug 2010, 09:26 last edited by
Are there any plan for the future?
-
wrote on 27 Aug 2010, 13:30 last edited by
They are obviously not exported by default but you can expose any QObject to WebKit.
For non-gui object, you simply add them with QWebFrame::addToJavaScriptWindowObject(). There are some great hybrid applications (WebKit + C++) build like that.
To embed graphical content, it is a bit more tricky, you need to make you own QWebPluginFactory.