How delete and deleteLater works with regards to signals and slots in Qt?
There is an object of class QNetworkReply. There is a slot (in some other object) connected to its finished() signal. Signals are synchronous (the default ones). There is only one thread. At some moment of time I want to get rid of both of the objects. No more signals or anything from them. I want them gone. Well, I thought, I'll use delete obj1; delete obj2; But can I really? The specs for ~QObject say: Deleting a QObject while pending events are waiting to be delivered can cause a crash. What are the 'pending events'? Could that mean that while I'm calling my delete , there are already some