[PyQt] QRunnable and emitting signals
Sebastian Wiesner
lunaryorn at googlemail.com
Fri Jul 22 14:44:57 BST 2011
2011/7/19 Jeremy Sanders <jeremy at jeremysanders.net>:
> Is there an easy way to signal a result from a QRunnable? I've worked
> around this problem by replacing the code with a worker thread and a
> semaphore.
It works for me with a separate QObject-derived class, which properly
declares the signal using the new-style signal-slot API. See the
attached source code.
Hope, this helps
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foobar.py
Type: text/x-python
Size: 839 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110722/23570584/attachment.py>
More information about the PyQt
mailing list