Del items from QGraphicsGridLayout ?
Marco Martin
notmart at gmail.com
Sun Mar 7 19:58:03 CET 2010
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
More information about the Plasma-devel
mailing list