[PyQt] Re: Problems with deletion of widgets

Filip Gruszczyński gruszczy at gmail.com
Tue Jan 13 23:35:07 GMT 2009


I have managed to find a hideous workaround. Instead of using scrolled
area I use a layout. When there is a change in the model structure, I
hide old widgets and add new one. When there are more than one hidden
widget I delete the oldest - this way I am not longer deleting it
during event handler.

But I hate it.

How can I delete widgets during their event handlers or prevent Python
from deleting them (together with calling deleteLater) or be able to
delete them just after their event handlers are finished?

-- 
Filip Gruszczyński



More information about the PyQt mailing list