Hi all,

I have a question about QScriptEngine. I want to insert objects that I
define in python into script context so that their methods can be called
from evaluated scripts. The problem I have right now is that properties of
these objects are not available in the script environment.

>From my reading of the documentation I concluded that it might be because
I'm not running Q_Object macro. However, I don't know if there is a way of
replicating what that macro does while sticking to Python.

An alternative way to do this would be to populate the object with function
properties one by one. Unfortunately, it seems like QScriptEngine API is
missing newFunction-method.

Does anybody have any suggestion about what I could do to run methods from
python objects I insert into script environment?

Regards,
Jukka Välimaa
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to