4 ms·
Signal connection behaviour seems to be different in PySide2 regarding non-slot receivers. E.g. this works in PyQt: def f(): pass signal.connect(f)
by blattimwind 8y ago
Signal connection behaviour seems to be different in PySide2 regarding non-slot receivers.
E.g. this works in PyQt:
def f(): pass
signal.connect(f)
signal.disconnect(f)
But the disconnect fails in PySide2 (RuntimError: not connected). Seems like you have to store the connection object, which is a bit of a PITA because signal.connect() does not return that.