Re: [PyQt] How to use sipAPIDef::api_get_pyobject and sipQtAPI::qt_connect

2011-11-26 Thread Phil Thompson
On Sat, 26 Nov 2011 10:37:12 -0600, Jack Cosgrove wrote: > Hi, > > I'm trying to connect a C++ signal to a Python slot. What is the best > way to do this? Two ways... 1. Make the receiver visible to C++ and use QObject::connect(), ie. decorate the slot with pyqtSlot(). 2. Make the transmitter

[PyQt] How to use sipAPIDef::api_get_pyobject and sipQtAPI::qt_connect

2011-11-26 Thread Jack Cosgrove
Hi, I'm trying to connect a C++ signal to a Python slot. What is the best way to do this? My current approach is to use sipQtAPI::qt_connect, and to do this I need to apparently convert the C++ object to a PyObject using SIP. I do that using sipAPIDef::api_get_pyobject. However whenever I call th