code: def mouseMoveEvent( self, event ):
          
          event.setAccepted(False)
          if self._hotspotPressed:
              event.accept()
              return
          
          # ignore events when the scene is in view mode
          scene = self.scene()
          if ( self.isLocked() or self._ignoreMouseEvents or \
               (scene and (scene.inViewMode() or scene.isConnecting()))):
              event.ignore()
              self._ignoreMouseEvents = True
              return
          
          # call the base method
          event.accept()
          super(XNode, self).mouseMoveEvent(event)
docs: Overloads the mouse move event to ignore the event when \
          the scene is in view mode.
          
          :param      event   <QMouseMoveEvent>