[Qt-interest] Qt + Javascript.. no qtwebkit
Sean Harmer
sean.harmer at maps-technology.com
Wed Sep 1 19:14:14 CEST 2010
Hi Scott,
On Wednesday 01 Sep 2010 17:43:59 Scott Aron Bloom wrote:
> Is it possible, to get access to the Javascript interpreter directly?
>
> Currently I have this functional, using an old but working JavaScript
> API system, but was wondering if Qt gave access to just the api?
>
> Essentially, I need to get the JS interpreter, add some call back
> functions to it (written in C++) and then have the ability to interpret
> text downloaded over the network.
>
> Just hoping to throw out some code with Qt wrapper code J
Can you not implement this with QScriptEngine and QNetworkAccessManager? You
should be able to evaluate your js file with the scriptengine and connect up
either C++ (or js) functions to be called as you need.
Cheers,
Sean
More information about the Qt-interest-old
mailing list