MyCell *cellScript = new MyCell(engine); QScriptValue cellScriptValue = engine->newObject(cellScript); engine->globalObject().setScriptClass(cellScript);class MyCell : public QObject, public QScriptClass{ ... MyCell(QScriptEngine * engine); ~MyCell(); QScriptValue property(const QScriptValue &object, const QScriptString &name, uint id); QScriptClass::QueryFlags queryProperty(const QScriptValue &object, const QScriptString &name, QueryFlags flags, uint *id); void setProperty(QScriptValue & object, const QScriptString & name, uint id, const QScriptValue & value );};