[Development] why is QJSEngine not modifying metaObject
Matt Broadstone
mbroadst at gmail.com
Wed Feb 11 22:12:41 CET 2015
On Wed, Feb 11, 2015 at 4:00 PM, Thiago Macieira <thiago.macieira at intel.com>
wrote:
> On Wednesday 11 February 2015 18:50:42 Hausmann Simon wrote:
> > Hi,
> >
> > The brute force way is to add this feature to the engine at the expense
> of
> > performance, memory consumption and maintenance :)
> >
> > Today you can invoke Javascript defined functions by simply getting the
> > function as a property via QJSValue and call() it.
>
> The objective was to expose such a JS object to D-Bus, but QtDBus requires
> the
> meta object to match.
>
I'm not sure what your full requirements are (it seems maybe you want to do
the reverse of what I was trying to do), but you might be interested in a
little science project I put together for a similar task:
https://bitbucket.org/devonit/qqmldbusinterface.
Regards,
Matt
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
> Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150211/4c96fa53/attachment.html>
More information about the Development
mailing list