Is it possible to disconnect all of a QObject’s connections without deleting it
There are at least 2 ways. First, disconnect everything. disconnect(obj,0,0,0); //or obj->disconnect(); Second. Every connect() returns QMetaObject::Connection which can be copied or moved, so you can save some connections in the list and after some time, just iterate through the list and call disconnect() for every object. Example with one connection: QMetaObject::Connection m_connection; //… m_connection … Read more