Please sign in to comment.
Improve the way how fake events are generated in CAD tools (#3302)
In my custom tool in python, the generated fake event received in cadCanvasMoveEvent() was actually QMouseEvent instance instead of QgsMapMouseEvent, suggesting something dodgy going on behind the scenes. The actual reason was that first argument was QMouseEvent::Move instead of QEvent::MouseMove (not sure why the cast did not work though) The new approach seems safer as the event goes through the ordinary event processing
- Loading branch information
Showing with 4 additions and 3 deletions.