I have some QtScripts that need to operate on some C++ data. I already expose a number of variables via QScriptEngine::globalObject().setProperty()
, but this only seems to work out of the box for simple data types and QStrings.
I've tried using QScriptEngine::newVariant()
, but none of QVariant
's member functions are exposed to the script engine.
Ideally I'd like to be able to convert the QStringList into a plain QtScript array and call native array functions on it. Is there any way to do this?