QObject::disconnect() on a queued connection
If I call disconnect() on a queued SIGNAL/SLOT connection then it may happen, that the target slot of this connection gets called after the disconnect call. This is not explicitely documented in the SIGNAL/SLOT documentation but I think that all SIGNALs that are already in the queue of the queued connection get executed even if the connection is already disconnected.
Is this right or am I wrong here?
If it is right, then it should be documented in the SIGNAL/SLOT documentation or disconnect() documentation because it may cause strange effects if somone expects that calling disconnect() means “my slot function will never get called from now on” (like me :O)
2 replies
You must log in to post a reply. Not a member yet? Register here!


