See http://doc.trolltech.com/latest/qscriptengine.html#newObject-2 This requires providing the QScriptClass interface (see http://doc.trolltech.com/latest/qscriptclass.html).
There should also be corresponding methods QScriptValue::scriptClass() and QScriptValue::setScriptClass().
Porting QtScript API over JSC C API will not be continued.