[PyKDE] Deleting QCanvasItems

Dustin Vink d.vink at mech.gla.ac.uk
Tue Jun 17 10:50:01 BST 2003


Is there a better way of deleting QCanvasItems?

def erase(self):
	trash = QCanvas()
	for item in self.canvas.allItems(): item.setCanvas(trash)
	self.canvas.update()


Cheers,
Dustin




More information about the PyQt mailing list