[Development] QThread usage/guidance

Olivier Goffart olivier at woboq.com
Wed Oct 10 17:32:51 CEST 2012

On Wednesday 10 October 2012 15:00:15 Tony Van Eerd wrote:
> I don't have any use cases, but I can't imagine the example recommendation
> of
> connect(thread, SIGNAL(finished()), worker, SLOT(deleteLater()));
> working as expected unless deleteLater() happens on the same thread as
> finished(), via a direct call.  So AutoConnection 'happens to work' because
> of an implied contract of how finished() works.
> I'm not looking at this stuff for any _particular_ purpose, but to
> - make sure it is suitable for the purposes it will likely be used for
> - recommend how to use it and when to use it

You are right.  So i went ahead and updated the documentation:

> So I'd like to understand how it works.  Maybe that means looking more at
> the code than the docs.  But the code can change - the real "contract" is
> in the docs.

Depends of the point of view... To me the real "contract" is in the test :-)


Woboq - Qt services and support - http://woboq.com

More information about the Development mailing list