[Interest] reading javascript body from c++

Lincoln Ramsay a1291762 at gmail.com
Tue Dec 11 00:02:57 CET 2012


Since QML has a JavaScript engine underneath it, have you tried using 
JavaScript to get the text of the function and store it in a string 
variable for C++ to grab?

ie.
http://stackoverflow.com/questions/3379875/can-javascript-get-a-function-as-text

I don't know if this actually works or not but I didn't see it suggested...


There is a way to get the text of an item (if that item is your own 
type). Might work for you but it's private API. QQmlCustomParser. It's 
how PropertyChanges can take the names of items and properties and then 
actually do useful things with them.

-- 
Link

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20121211/c53c9684/attachment.html>


More information about the Interest mailing list