JS Scriptengine in libplasma

Richard Dale richard.j.dale at gmail.com
Thu May 7 20:18:26 CEST 2009


On Thu, May 7, 2009 at 4:56 PM, Aaron J. Seigo <aseigo at kde.org> wrote:
> On Thursday 07 May 2009, Richard Dale wrote:
>> Can you create Plasma widgets though?
>
> yes, several of the examples in scriptengines/javascript/tests/ do just that.
Ah yes, sorry I've found the code now in uiloader.cpp - I had thought
that was to do with loading ui files, and not instantiating Plasma
widgets.

BTW: In Qt 4.5 (and Qt 4.5.1 onwards  with namespaced classes like
Plasma:: ones), you can add 'Q_INVOKABLE' to constructors, which might
simplify QScript bindings as you only need to register the class and
you get a pretty much complete binding.


More information about the Plasma-devel mailing list