[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] Re: Attached program hangs after 1 "print" in 3.10 and 3.11
From:       James Lamanna <jamesl () appliedminds ! com>
Date:       2004-04-22 21:31:18
Message-ID: 408839A6.9060808 () appliedminds ! com
[Download RAW message or body]

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()



_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic