• Samuel GAIST's avatar
    [widgets] Add parent to QMenu · 5079e3f2
    Samuel GAIST authored
    Issue found when testing with PySide2.
    From the documentation, QPushButton::setMenu
    does not take ownership of the menu. With PySide2,
    the menu is garbage collected but the actions
    created from it are not completely destroyed as
    it seems. Giving the menu a proper parent ensure
    that its lifetime is correctly handled.