Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, December 2007
Seeking for a QScriptExtensionPlugin sample


Message 1 in thread

I have a hard time figuring out how to create a QtScript plugin using
QScriptExtensionPlugin.
I managed to get a plain script plugin to work with a __init__.js file,
however no matter what I cannot get a dll placed in the same plugin
directory to work.

It would be a big help to get a basic example, but ANY example at all would
be welcome.

--
 [ signature omitted ] 

Message 2 in thread

On 12/8/07, Acenes <acenes@xxxxxxx> wrote:
> I have a hard time figuring out how to create a QtScript plugin using
> QScriptExtensionPlugin.
> I managed to get a plain script plugin to work with a __init__.js file,
> however no matter what I cannot get a dll placed in the same plugin
> directory to work.
>
> It would be a big help to get a basic example, but ANY example at all would
> be welcome.

Here's a link to some I did (on linux)

http://websvn.kde.org/trunk/playground/bindings/qtscript/qtscriptplugins/

Hope that helps

Rich.

--
 [ signature omitted ] 

Message 3 in thread

Thank you very much Rich, your samples helped me understand the issue and
get get my plugin finally working.

Interesting benchmarks btw, did the trolls comment on the very bad
performance of QtScript in the concatx test compared to KJS?

--
 [ signature omitted ] 

Message 4 in thread

On 12/9/07, Acenes <acenes@xxxxxxx> wrote:
> Thank you very much Rich, your samples helped me understand the issue and
> get get my plugin finally working.

I'm glad that helped.

>
> Interesting benchmarks btw, did the trolls comment on the very bad
> performance of QtScript in the concatx test compared to KJS?

Yes, they did. The results there were from the very first qt snapshots
that included QtScript, they made some changes to the interpreter as a
result of the tests that gave a huge improvement to the speed in this
case.

Cheers

Rich.

--
 [ signature omitted ]