[PyQt] Function pointers and SIP

Giovanni Bajo rasky at develer.com
Thu Jun 18 18:40:08 BST 2009


Hi Phil,

given a C++ object where you can register callbacks such as:

     void registerCallback(void (*cb)(void*), void* user_data);

or

     void registerCallback(std::tr1::function<void (void)> cb);

how would you wrap them in SIP? Is there some code in PyQt that I can 
look at?
-- 
Giovanni Bajo
Develer S.r.l.
http://www.develer.com


More information about the PyQt mailing list