How to clone function in Qt script?

110 views Asked by At

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()+")");
0

There are 0 answers