[PyQt] enums and hand written code

Clinton Stimpson cjstimpson at gmail.com
Fri Aug 6 18:31:18 BST 2010


Hi,

I've got some hand written code using the SIP API to integrate PyQt with other 
C++ classes wrapped with another tool.

I've got things generally working, but I'm not quite sure how to handle enums, 
such as Qt::AutoConnection.

When I call api->api_convert_to_type(...) it asserts.  I can do a 
sipTypeIsEnum(...) to check beforehand, but I don't see in the docs how to get 
the value out.

Also, the docs should be updated to show how to get the sip api if its a 
PyCapsule.

Thanks,
Clint


More information about the PyQt mailing list