Hi to all!

I need to add created objects to qscript.

for example:
void addObjectToScript()
{
MyQObject *myObj = new MyQObject(0);

//how to add created object to script, aslo script must be ownership of this object (object deleted by script env.)

scriptEngine->... //???

}

Thanks!