Skip to content

Fix button menu lifetime

Samuel GAIST requested to merge 248_fix_button_menu_lifetime into v2

Summary

This merge request fixes an issue where creating a QMenu within a method would result in its destruction when using PySide2.

The simple fix is to give the menu a parent.

Relevant issue(s) fixed:

Fixes #248 (closed)

Merge request reports

Loading