[Qt-interest] processevents needed for qthreads?
Konstantin Tokarev
annulen at yandex.ru
Fri Aug 12 11:22:22 CEST 2011
12.08.2011, 13:15, "Peter Bienstman" <Peter.Bienstman at ugent.be>:
> Hi,
>
> I have a threaded program which works fine under Linux, but crashes sometimes
> under Windows. My suspicion is that this is because I use
> QtCore.QCoreApplication.processEvents, for which I read everywhere that this
> is to be avoided and is a crutch for poor design.
> while thread.isRunning():
> QtCore.QCoreApplication.processEvents(\
> QtCore.QEventLoop.ExcludeUserInputEvents)
Doing processEvents in infinite loop is really bad idea
--
Regards,
Konstantin
More information about the Qt-interest-old
mailing list