If I have an object which has connected to signals that will be emitted from another thread is there any danger that the slots can be called on my object whilst it is being destructed? For example:
connect(anotherThread, SIGNAL(aSignal()), this, SLOT(mySlot()));
bar = new Bar();
// Do more clean up
// Could a slot be called at this point?
bar->someFunc(); // bar may of been deleted!
Now, I can easily add a call to disconnect() as the first thing in my destructor but I wanted to check if this was a potential problem or not.