[PyQt] How to get Qt signals delivered to a pure python thread.

Giuseppe Corbelli giuseppe.corbelli at copanitalia.com
Thu Jan 8 15:04:19 GMT 2015


On 08/01/2015 11:59, Ilya Kulakov wrote:
>> Don't understand what "within qeventloop" means. You can create an
>> eventloop and call processEvents repeatedly instead of exec_().
>> If you look at qeventloop.cpp QT sources you can see that exec() is based on a
>> while (!d->exit)
>>   processEvents(flags | WaitForMoreEvents | EventLoopExec);
>
> Oh then it looks like I did something wrong… Then if not exec, how
> QEventLoop registers in the thread?
> When it's time to deliver anything to my thread, how Qt would find out
> where  to send them?

Good question. I don't know.
Guess: event queues for each thread plus some thread-specific data? Sorry, 
can't really help you.

-- 
             Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666318  Fax: +390302659932
E-mail: giuseppe.corbelli at copanitalia.com


More information about the PyQt mailing list