code: def rowsInserted(self, parent, start, end):
          
  
          super(LogView, self).rowsInserted(parent, start, end)
  
          # IMPORTANT: This must be done *after* the superclass to get
          # an accurate value of the delegate's height.
          self.scrollToBottom()
docs: Automatically scroll to bottom on each new item added
  
          Arguments:
              parent (QtCore.QModelIndex): The model itself, since this is a list
              start (int): Start index of item
              end (int): End index of item