code: def rowsAboutToBeRemoved(self, parent, start, end):
          
          self._viewIsDirty = True
          super(StimulusView, self).rowsAboutToBeRemoved(parent, start, end)
docs: Marks view for repaint. :qtdoc:`Re-implemented<QAbstractItemView.rowsAboutToBeRemoved>`