[PyKDE] GUI not updateing ?

Giovanni Bajo rasky at develer.com
Sun Sep 24 15:05:51 BST 2006


Ismail Donmez wrote:

>>> Or use events to communicate the progress. I haven't had the
>>> experience yet, but many qt and kde developers say that
>>> processEvents is evil and should be avoided, it might have
>>> mysterious side effects.
>>
>> Which ones?
>
> If you used deleteLater() for an QObject, processEvents() might
> delete that object which might result in a crash.

And? Why should you use an object on which you called deleteLater()? The object
will still be destroyed as soon as the code gets back to the event loop.
processEvents() is in fact just a nested event loop.

Giovanni Bajo




More information about the PyQt mailing list