[PyQt] Changing base class arguments

2012-08-23 Thread Marco Meier
Hi, i'm trying to wrap a C++ class with virtual methods using SIP. This class takes an auto_ptr pointing to another class as argument to the only defined constructor. Without virtual methods, i used %MethodCode to create an object of this class using a const char * as argument. With virtual metho

[PyQt] Accessing global variables

2012-08-24 Thread Marco Meier
Hi, i am trying to access an enum that is defined globally in a namespace. Simply defining it in the sip file wraps the type correctly, but the value is not the one in the c++ shared object. I tried to use %SetCode and %GetCode with an integer to access the correct value. %GetCode works as intend