[PyKDE] linux pyqt/pykde multithread application. How to send
signal/ update state of app from non qt loop threads ?
ismail at pardus.org.tr
Thu Apr 13 15:47:29 BST 2006
Perşembe 13 Nisan 2006 17:27 tarihinde, Mateusz Korniak şunları yazmıştı:
> I have multithread pyqt/pykde application.
> I leave first thread to run qt-loop.
> I want long execution time code to be run in different threads as in
> background. 
> How can I interact from those background threads with my qt GUI ? (send
> signal, update text in QLineEdit) ?
You can post an event from the thread using QApplication::postEvent  and
process the event in main gui with QObject::customEvent  . Don't use
signal/slots across threads , Xlib is not thread safe.
Hope this helps,
<Terwou> \\o \o> <o/ o//
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 191 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060413/2ba04e11/attachment.bin
More information about the PyQt