[Qt-interest] Sending a qt signal from pthreads

Thiago Macieira thiago at kde.org
Mon Feb 7 23:32:53 CET 2011


On Monday, 7 de February de 2011 18:31:59 Gheorghe Marinca wrote:
> Hi,
> 
> I have a linux application that uses pthreads. I want to be able from the
> context of the pthread (I have a class derived from QObject that get called
> from inside some pthread "legacy" code )
> to be able to send qt signals to other qt classes. If this is possible than
> I guess the usual mechanism of signal/slots work in this case also - if the
> object that receives the signals is from main qt thread than it will receive
> the slot calls inside the main thread.

Signal delivery depends only on the thread of the target object. It doesn't 
depend on the source thread, much less how it was started.

-- 
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/20110207/fddd4854/attachment.bin 


More information about the Qt-interest-old mailing list