Re: [PyQt] SIP_ANYSLOT vs SIP_SLOT vs SIP_SLOT_CON()

2013-09-13 Thread Sébastien Sablé
2013/9/10 Phil Thompson > > > That doesn't sound like a great design... I agree but it is not my call. It may change when the code gets migrated to Qt5. > SIP_SLOT just checks that the argument has been created by QtCore.SLOT(), > ie. that it is a string that begins with the magic character. Ple

Re: [PyQt] SIP_ANYSLOT vs SIP_SLOT vs SIP_SLOT_CON()

2013-09-10 Thread Phil Thompson
On Tue, 10 Sep 2013 16:17:25 +0200, Sébastien Sablé wrote: > [sorry previous email was sent before I finished it] > > Hi, > > I want to bind with sip a connect method which can be used with a slot for > which the signature will change from one call to the other. That doesn't sound like a great

[PyQt] SIP_ANYSLOT vs SIP_SLOT vs SIP_SLOT_CON()

2013-09-10 Thread Sébastien Sablé
Hi, I want to bind with sip a connect method which can be used with a slot for which the signature will change from one call to the other: The class looks a bit like that: class Foo { Q_OBJECT public: void connect(const int eventType, QObject *receiver, const char *member); } void con

Re: [PyQt] SIP_ANYSLOT vs SIP_SLOT vs SIP_SLOT_CON()

2013-09-10 Thread Sébastien Sablé
[sorry previous email was sent before I finished it] Hi, I want to bind with sip a connect method which can be used with a slot for which the signature will change from one call to the other. The class looks a bit like that: class Foo { Q_OBJECT public: void connect(const int eventType, QOb