[Qt-interest] Invoke function in JavaScript
noam.rosenthal at nokia.com
noam.rosenthal at nokia.com
Wed Dec 15 06:59:14 CET 2010
>-----Original Message-----
>From: ext Zhongmiao Li [mailto:mars.leezm at gmail.com]
>So is there some constructor of QScriptValue that can make
>QScriptValue contains an array?
http://doc.trolltech.com/4.7/qscriptengine.html#newArray
http://doc.trolltech.com/4.7/qscriptvalue.html#setProperty-3
QScriptValue array = engine->newArray();
array.setProperty(0, something);
array.setProperty(1, QScriptValue());
It's all in the docs :)
No'am
More information about the Qt-interest-old
mailing list