Del items from QGraphicsGridLayout ?

Cédric Bellegarde gnumdk at gmail.com
Sun Mar 7 18:14:37 CET 2010


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?

Thanks

--
Cédric


More information about the Plasma-devel mailing list