[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] How to get Qt signals delivered to a pure python thread.
From: Ilya Kulakov <kulakov.ilya () gmail ! com>
Date: 2015-01-08 10:25:54
Message-ID: A944F14F-72C4-40F2-A812-6E23487E3A1A () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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).
[Attachment #5 (unknown)]
<html><head><meta http-equiv="Content-Type" content="text/html \
charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: \
space; -webkit-line-break: after-white-space;" class=""><div>processEvents has an \
overload with a maxTime argument, isn't that<br class=""><blockquote type="cite" \
class=""><div class="">exactly what Ilya is looking for?<br class=""><br class=""> \
Process pending events that match flags for a maximum of maxTime<br \
class=""> milliseconds, or until there are no more events to \
process,<br class=""> whichever is shorter.<br class=""><br \
class=""><a href="http://doc.qt.io/qt-5/qeventloop.html#processEvents-2" \
class="">http://doc.qt.io/qt-5/qeventloop.html#processEvents-2</a><br \
class=""></div></blockquote><br class=""></div><div>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.</div><div>But it requires a blocking qeventloop.exec in the first place \
which I cannot afford to have.</div><div><br class=""></div><div>What I'm looking \
for, is something like qeventloop.exec(10ms).</div><div><br \
class=""></div></body></html>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic