<div dir="ltr">[sorry previous email was sent before I finished it]<br><br><div><div class="gmail_extra"><div>Hi,<br><br></div>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.<br><div><br>The class looks a bit like that:<br>
<br>class Foo<br>{<br>Q_OBJECT<br>public:<br></div><div> void connect(const int eventType, QObject *receiver, const char *member);<br>}<br><br></div><div>I have seen quite a few example in the doc or in PyQt using SIP_RXOBJ_CON and SIP_SLOT_CON.<br>
</div><div>However it seems SIP_SLOT_CON can only be used when you know the signature of your signal in advance.<br></div><div><br></div><div>The documentation mentions also SIP_SLOT and SIP_ANYSLOT but is very light on the details.<br>
</div><div>SIP_ANYSLOT requires to write some custom code to handle conversion as can be seen in the code for QShortcut.<br></div>I could not find any example for SIP_SLOT anywhere.<br><br></div><div class="gmail_extra">What is the difference between SIP_ANYSLOT and SIP_SLOT? Which one should I use? And can you provide an example when using SIP_SLOT?<br>
<br></div><div class="gmail_extra">Thanks in advance<br></div><div class="gmail_extra">Best regards<br><br>--<br></div><div class="gmail_extra">Sebastien Sable<br></div></div></div>