On Sunday 07 March 2010, Cédric Bellegarde wrote:
> Hello,
> 
> i've got a QGraphicsGridLayout with this clear function like this:
> 
>     def __clearLayout (self):
>         """
>             Clear layout items
>         """
>         while self.count ():
>             self.removeAt (0)
> 
> The problem is that it will only works if i delete items too :(
> 
> I'm filtering the view, so deleting items is not an option, i don't want to
> reload them.
> 
> What's best solution ? Copy every item into new items and delete olds?
> 

no, this -must- work
probably you're still seeing them because they are still in the same position, 
you should also hide them

Cheers,
Marco Martin
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to