<div dir="ltr">Thank you very much!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 17, 2019 at 6:30 AM Phil Thompson <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 15/07/2019 18:35, Maxime Lemonnier wrote:<br>
> Hi,<br>
> <br>
> I'm trying to use <a href="https://doc.qt.io/qt-5/qobject.html#disconnect-4" rel="noreferrer" target="_blank">https://doc.qt.io/qt-5/qobject.html#disconnect-4</a><br>
> <br>
> to disconnect connections in a generic way (without keeping track of <br>
> the<br>
> actual QObject, signals and slots involved). In C++ I would<br>
> store QMetaObject::Connection instances retruned by the connection <br>
> methods.<br>
> In PyQt5, I have the QMetaObject.Connection in hand, but I can't<br>
> find QObject::disconnect(const QMetaObject::Connection &connection).<br>
> <br>
> Is there a way do achieve what I want?<br>
<br>
I think it just got forgotten when support for QMetaObject.Connection <br>
was added. It will be in tonight's snapshot - but untested.<br>
<br>
Phil<br>
</blockquote></div>