[PyQt] How to get Qt signals delivered to a pure python thread.
me at the-compiler.org
Thu Jan 8 10:28:29 GMT 2015
* Ilya Kulakov <kulakov.ilya at gmail.com> [2015-01-08 16:25:54 +0600]:
> 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).
Hmm. Couldn't you use a QTimer to call qeventloop.quit after 10ms? Not
sure if that'd work though.
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 819 bytes
Desc: not available
More information about the PyQt