Changes between Initial Version and Version 1 of Ticket #8362, comment 6
- Timestamp:
- Jan 23, 2023, 7:03:56 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8362, comment 6
initial v1 1 1 Context menus are created in ui/gui.py in _show_context_menu() using QMenu.exec(). Mouse events on the graphics window are handled in mouse_modes/mousemodes.py in _dispatch_mouse_event(). Probably the right Qt call on mouse press would remove the QMenu but I don't see what Qt call might do that. 2 3 The problem is no doubt because the MouseModes.set_graphics_window() sets QWindow.mousePressEvent on the graphics window. A QWindow is lower level than a QWidget, and so probably that click goes undetected by the menu dismissing code.