Handle mouse in MapViewer example
Unsolved
General and Desktop
-
Hi, in the Map Viewer example, I understand that the MouseArea in MapComponent.qml is supposed to response to mouse events. But even I commented out all the handlers here, I can still pan and zoom the map with mouse. Is there any other mouse events handler behind the scene?
MouseArea { id: mouseArea property variant lastCoordinate anchors.fill: parent acceptedButtons: Qt.LeftButton | Qt.RightButton // /* onPressed : { map.lastX = mouse.x map.lastY = mouse.y map.pressX = mouse.x map.pressY = mouse.y lastCoordinate = map.toCoordinate(Qt.point(mouse.x, mouse.y)) } onPositionChanged: { if (mouse.button == Qt.LeftButton) { map.lastX = mouse.x map.lastY = mouse.y } console.log("onPositionChanged") } */