The name after static is always the classname of the class on which the method should appear and not the name of the return type. The result type can be any return type the PythonQt supports.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
What s the right way to implement a python static method for my-cpp-class wrapper?
I saw the
static_
prefix in the examples and it works e.g.is accessible in python
but what about a static method which return a
Qlist<myClass*>
?I tried with
but did not succeed.
Is there a way to do this?
Thanks a lot.
Last edit: tom 2016-06-11
The name after static is always the classname of the class on which the method should appear and not the name of the return type. The result type can be any return type the PythonQt supports.
oh my bad...
thanks a lot!