Removed from script " + typeof TestObject[property]" and got result.
QT_VERSION => 0x40303
##
## Setting
##
objectName =>
destroyed(QObject*) =>
destroyed() =>
deleteLater() =>
signal1(bool) =>
signal2(int) =>
signal3(QString) =>
slot1() =>
##
## Checking
##
objectName =>
destroyed(QObject*) =>
destroyed() =>
deleteLater() =>
signal1(bool) =>
signal2(int) =>
signal3(QString) =>
slot1() =>
Looks like accessing object's properties in script like "TestObject[property]" in enumeration (for (a in b) {b[a];}) is broken? Though added "obj['slot1()']();" here and there in SetObject script function -slot is called and nothing is changed. Also instead "TestObject[property]" added "TestObject['slot1()']" - nothing strange happens.
Yet another experiment - pushed property string to array then used array:
"function SetObject(obj) {\n"
" var property, arr, i ;\n"
"arr = new Array();"
"\n"
" TestObject = obj ;\n"
"\n"
" print(\"##\") ;"
" print(\"## Setting\") ;"
" print(\"##\") ;"
" for( property in obj ) \n"
" arr.push(new String(property));\n"
"for(i = 0; i < arr.length; i++) print(arr + ' => ' + obj[arr[i]]);"
" \n"
"}\n"
"\n"
Good? Hm. Don't know.