Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.6.2
-
Component/s: Core: Object Model
-
Labels:
-
Environment:windows
-
Commits:972580accdd0732b33947e8b1ca0ba8943041bdc, 1cf75af3f2f3430bab11f9ef1eea5deb4c59aa2e
Description
disconnectNotify() is not called after a signal has been disconnected.
QMetaObject::Connection conn = QObject::connect(myObject, &MyObject;::someSignal, this, [this]() { }); QObject::disconnect(conn); // Or disconnect(myObject, SIGNAL(someSignal()), 0, 0); void MyObject::disconnectNotify(const QMetaMethod&) { // function not called }