[Qt-interest] Qt + Javascript.. no qtwebkit
Richard Moore
richmoore44 at gmail.com
Thu Sep 2 14:03:43 CEST 2010
Here's a pac file implementation I wrote using QScriptEngine a while back:
http://xmelegance.org/devel/pac-files.tar.gz
Cheers
Rich.
On Wed, Sep 1, 2010 at 7:14 PM, Scott Aron Bloom
<Scott.Bloom at onshorecs.com> wrote:
> I will take a look at QScriptEngine
>
> Some more detail, my current system is in use for the auto configuration
> proxy scripts, and it works great...
>
> However, at the time of implementation (2+ years ago) there was no "Qt"
> way to do the JavaScript evaluation.
>
> Scott
>
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com
> [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Sean Harmer
> Sent: Wednesday, September 01, 2010 10:14 AM
> To: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] Qt + Javascript.. no qtwebkit
>
> 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list