Passing a wrapped cpp object as a parameter to python function call
Dynamic Python binding for Qt Applications
Brought to you by:
florianlink,
marcusbarann
I am having some troubles passing a cpp object to as a parameter to a function of a python object.
Assume I have a class in a namespace
Now, in my code, I want to call a function that needs to have access to the TestClass's func().
First, I register stuff
And then I want to call a method with a TestClass instance as a ref parameter:
Finally, the python code reads something line:
The interpreter, however, with an error like:
AttributeError: test::TestClass has no attribute named 'func'
Could you tell me what am I doing wrong? How am I suppost to associate a wrapper with my instance of TestClass for passing parameters?