[Qt-interest] Trying to understand Signal/slots.

Thiago Macieira thiago at kde.org
Mon Aug 23 08:34:27 CEST 2010


On Monday 23. August 2010 02.08.55 Francisco Gonzalez Morell wrote:
> Is any problem with the slot stopProcess?

We don't know. You didn't post its body.

However, the fact that it's a slot in a class deriving from QThread does bring 
this blog to mind:

http://labs.trolltech.com/blogs/2010/06/17/youre-doing-it-wrong/

A slot controlling the thread is not wrong per se. A slot for doing work in 
the thread would be. But it really depends on what you put in that slot.

Before we go further, answer this question: in which thread is that slot run? 
You can only put slots in a class derived from QThread if you can answer that 
question.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100823/b83deaa7/attachment.bin 


More information about the Qt-interest-old mailing list