[Qt-interest] signals, sender(), and threads...
Gordon Schumacher
gordon at rebit.com
Tue Nov 24 18:45:09 CET 2009
BRM wrote:
> I all connections are made via default - so autoconnection, which means queued connections.
> I very rarely do anything explicitly - and even then, it is typically to ensure they are queued.
>
So, the reason I said you would probably want to use blocking queued
connections is that otherwise you will need to have synchronization or
some other mechanism to ensure that the sender that initiated the signal
has been neither destroyed nor disconnected since the signal was fired
(think about application shutdown!)
I did at one point write an extension similar to AutoConnect that I
called AutoBlockingConnect; I intend to be submitting it to Gitorious
sometime soon.
More information about the Qt-interest-old
mailing list