With http://doc.qt.nokia.com/4.7-snapshot/qtwebkit-bridge.html we can expose Qt ‘s QObject as glabal JS objects in browser, this helps in exposing native functionality, or to expose new set of JS helper APIs, Currently QtWebkit has implemented QtWebkit bridge on top of JavaScriptCore.
Is there any way to expose native C++/C objects/structures in Google ‘s V8 JS engine?
Yes. See the examples under http://code.google.com/p/v8/source/browse/trunk/src/extensions/?r=8431 that extend
v8::Extensionwhich I believe are manipulated viaapi.h.You can also create objects to expose to V8 and intercept property accesses on them via property interception.