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

Ilya Kulakov kulakov.ilya at gmail.com
Thu Jan 8 10:25:54 GMT 2015

processEvents has an overload with a maxTime argument, isn't that
> exactly what Ilya is looking for?
>    Process pending events that match flags for a maximum of maxTime
>    milliseconds, or until there are no more events to process,
>    whichever is shorter.
> http://doc.qt.io/qt-5/qeventloop.html#processEvents-2 <http://doc.qt.io/qt-5/qeventloop.html#processEvents-2>

Unfortunately it does not work as expected. processEvents should be running _within_ qeventloop. As I understand it's designed to process events during some long term task which do not return execution.
But it requires a blocking qeventloop.exec in the first place which I cannot afford to have.

What I'm looking for, is something like qeventloop.exec(10ms).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150108/28457bc7/attachment.html>

More information about the PyQt mailing list