Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Mac menu conventions changed in Qt 5.1.0
Forum Updated to NodeBB v4.3 + New Features

Mac menu conventions changed in Qt 5.1.0

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kegon
    wrote on 4 Jul 2013, 13:11 last edited by
    #1

    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 ?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 4 Jul 2013, 21:05 last edited by
      #2

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kegon
        wrote on 4 Jul 2013, 22:43 last edited by
        #3

        It doesn't appear to be

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nyxbull
          wrote on 27 Jul 2013, 21:43 last edited by
          #4

          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

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kegon
            wrote on 28 Jul 2013, 00:20 last edited by
            #5

            Good tip, thanks.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved