Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Mac menu conventions changed in Qt 5.1.0
Qt has been following Mac conventions by automatically moving About, Quit, Preferences to the application menu and Help to the Help menu regardless of the menu in which the action is added.
Having rebuilt my application on Qt 5.1.0 I noticed that About, Quit and Preferences are not being relocated. Can anyone else confirm this ?
I've not search through it yet, but the code handling that might have been moved to the "qtmacextrax":http://qt.gitorious.org/qt/qtmacextras respository
It doesn't appear to be
nyxbull last edited by
I can confirm that preferences and about menu items in Qt 5.1 were moved from standard Mac menu to the place defined in QtCreator. I solved this by using the method setMenuRole:
ui->actionAbout->setMenuRole(QAction::AboutRole); // 5.1 fix
ui->actionPreferences->setMenuRole(QAction::PreferencesRole); // 5.1 fix
Good tip, thanks.