[PyKDE] Re: Attached program hangs after 1 "print" in 3.10 and 3.11

James Lamanna jamesl at appliedminds.com
Thu Apr 22 23:33:01 BST 2004


James Lamanna wrote:
> The simple program below does not produce the desired behavior, which is
> to print text to a QTextBrowser once a second from another thread.
> Instead it just hangs after the thread posts 1 event.
> Is there something I'm doing horribly wrong?
> This breaks on 3.10 and 3.11 of PyQt with Qt 3.3.0
> (using Gentoo emerge to install)
I found the answer myself.
QApplication.sendEvent() is not thread-safe.
I needed to use QThread.postEvent()






More information about the PyQt mailing list