QMenuBar::addMenu does not take ownership of the QMenu, setting their parent allows them to be cleaned up