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

Maxime Lemonnier maxime.lemonnier at gmail.com
Mon Jul 15 18:35:04 BST 2019


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?

PyQt5==5.12.2
PyQt5-sip==4.19.17


Thanks!


More information about the PyQt mailing list