Changes between Initial Version and Version 1 of Ticket #8362, comment 6


Ignore:
Timestamp:
Jan 23, 2023, 7:03:56 PM (3 years ago)
Author:
Tom Goddard

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8362, comment 6

    initial v1  
    11Context 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
     3The 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.