On Wed, Feb 11, 2015 at 1:12 PM, Matt Broadstone <mbroa...@gmail.com> wrote: > On Wed, Feb 11, 2015 at 4:00 PM, Thiago Macieira <thiago.macie...@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. >
Awesome! I'll probably need to do something very similar. Seems this also follows the pattern that qdbus follows for building the meta object. Thanks! Another question would be whether I should do this in my own project, of if something like this would be generally useful to add to QJSEngine? > Regards, > Matt > >> >> -- >> Thiago Macieira - thiago.macieira (AT) intel.com >> Software Architect - Intel Open Source Technology Center >> >> _______________________________________________ >> Development mailing list >> Development@qt-project.org >> http://lists.qt-project.org/mailman/listinfo/development > > > > _______________________________________________ > Development mailing list > Development@qt-project.org > http://lists.qt-project.org/mailman/listinfo/development > _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development