code: def clear(self):
          
          model = self.tree.model()
          # Don't use model.clear(). it will delete the column sizes
          model.removeRows(0, 1)
          model.setRowCount(1)
          self._setColumnCountForContents()
docs: Removes all VisItems