Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Reversible signal/slot mechanism
-
How to achieve reversible signal/slot mechanism in Qt?
-
MyClass1 a; MyClass2 b; //Connect QMetaObject::Connection _ConnectMarker = connect(&a, &MyClass1::Signal, &b, &MyClass2::Slot); //Disconnect delete a; //or delete b; //or QObject::disconnect( _ConnectMarker);
-
@J.Hilk Thanks. I will try and let you know.