- 
    
Bug
 - 
    Resolution: Invalid
 - 
    
P2: Important
 - 
    None
 - 
    5.15.4
 - 
    Desktop
 
If QMenu is created and set to QPushButton and QMenu::exec is called to show the menu. While the menu is shown click the red X button to close the parent window, closes the widget but menu still is shown as orphan. 
 In attached example 
 -Click Show WIndow
 -Click Me
 -close window
 Menu remain visible.