Look what I just discovered. This is a snippet from some actual code, so the class names are specific to my instance.
def mouseMoveEvent(self, event=None): if self.activeLayer.layerName != 'Whiteboard': super(MapPage, self).mouseMoveEvent(event) else: if (event.buttons() & Qt.LeftButton) and self.scribbling: self.drawLineTo(event.scenePos())
What I did was re-declared mouseMoveEvent, but if the executable instance of activeLayer is not called "Whiteboard", then the software runs through the "original" mouseMoveEvent.
Prof. Ebral
source share