Give QMenus explicit parents
Under Wayland, QMenus show up misplaced and with window decorations when opening them while the main window is not focused. This explicitly sets their parent to the main window to prevent that.
Related: https://bugreports.qt.io/browse/QTBUG-60932
Closes bug 442779.