On Thursday 04 November 2010 19:48:27 Stefan Krastanov wrote:
> Hi,
> 
> I have the following problem. I have a list of QWidgets and they all are
> shown on screen. Les us call the list L.
> 
> I want to delete a number of widget (delete them forever). I use either
> L=L[:some_number] or del L[other_number:]. The list is getting shorter but
> the widget are still on screen.
> 
> Those widget are created with parent=None, but are also added to a layout.
> 
> Any ideas why they are not deleted. To whom do they belong? Is there a way
> to call the c++ delete method on them? Is there a more pythonian way to
> delete them?

Probably there is another reference to the widget, so python isn't deleting 
the object.

Anyway you can call deleteLater method on each widget to solve your problem.

Regards

-- 
Hugo Parente Lima
INdT - Instituto Nokia de Tecnologia

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to