[PyQt] QObject::disconnect(const QMetaObject::Connection &connection)

Maxime Lemonnier maxime.lemonnier at gmail.com
Wed Jul 17 14:12:13 BST 2019


Thank you very much!

On Wed, Jul 17, 2019 at 6:30 AM Phil Thompson <phil at riverbankcomputing.com>
wrote:

> On 15/07/2019 18:35, Maxime Lemonnier wrote:
> > Hi,
> >
> > I'm trying to use https://doc.qt.io/qt-5/qobject.html#disconnect-4
> >
> > to disconnect connections in a generic way (without keeping track of
> > the
> > actual QObject, signals and slots involved). In C++ I would
> > store QMetaObject::Connection instances retruned by the connection
> > methods.
> > In PyQt5, I have the QMetaObject.Connection in hand, but I can't
> > find QObject::disconnect(const QMetaObject::Connection &connection).
> >
> > Is there a way do achieve what I want?
>
> I think it just got forgotten when support for QMetaObject.Connection
> was added. It will be in tonight's snapshot - but untested.
>
> Phil
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20190717/08d7f62e/attachment.html>


More information about the PyQt mailing list