I want to send Qt script data into another thread. To do that, I must copy the data, since the QScriptValue objects refer to javascript objects, rather than containing them.
How can I clone a function? This isn't very good, cloning entry into subEntry:
subEntry = target.engine()->evaluate("("+entry.toString()+")");