code: def enterEvent(self, event):
          
          super(XViewPanelItem, self).enterEvent(event)
  
          # store the hover state and mark for a repaint
          self._hovered = True
          self.update()
docs: Mark the hovered state as being true.
  
          :param      event | <QtCore.QEnterEvent>