[Qt-interest] Adding custom (native) JavaScript functions to QML engine?

Richard Moore richmoore44 at gmail.com
Mon Mar 22 13:59:24 CET 2010


On Mon, Mar 22, 2010 at 12:33 PM, John McKisson <john.mckisson at gmail.com> wrote:
> It appears it can easily be done with some of my own modifications to
> the QDeclarativeEngine code but I would rather not do this
> as it breaks portability.
>
> Is this even possible with the current implementation of QML?  The
> future of my application depends on it =/

I've looked into this too. It requires adding an accessor to get at
the QScriptEngine and disabling the code that makes the global object
read-only. The restriction is a bad one IMHO, but the response
regarding removing it was not positive.

Cheers

Rich.




More information about the Qt-interest-old mailing list