Mac menu conventions changed in Qt 5.1.0
-
wrote on 4 Jul 2013, 13:11 last edited by
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 ?
-
Hi,
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
-
wrote on 4 Jul 2013, 22:43 last edited by
It doesn't appear to be
-
wrote on 27 Jul 2013, 21:43 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 -
wrote on 28 Jul 2013, 00:20 last edited by
Good tip, thanks.