Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.4.1
-
None
Description
With an application that has a toplevel QMainWindow :
create a typical menu structure in the main window's menu bar
- the menu contains a quit action
- according to a saved previous state, the application can start up by only showing it's system tray icon
The expected Qt behaviour is that the Mac application menu should be merged independently on whether the main window starts shown or hidden
instead if the main window is not shown during startup, but later by the user, the Mac menu is not merged, and the Apple-Q shortcut quits the event loop, instead of triggering an action
- if the main window is shown during startup, the menu is properly merged
A workaround is to always show mainwindow on startup, and then hide it according to the preferences when they are loaded (drawback: this leads to flicker, in case loading the preferences is delayed)