Qt classes bindings for Qt WebKit JavaScriptCore?
-
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.
-
AFAIK they are not exported.
-
Are there any plan for the future?
-
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.