I found by accident that my code deletes a QObject while it's emitting a signal. The deletion happens from a slot connected to that signal. My understanding has always been that such a thing is not allowed. Yet, I've seen no crashes or warning messages in this case. Am I wrong assuming such a thing is not allowed or is it just luck it's not crashing?

A am using the latest Qt 5.7.