Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Mac menu conventions changed in Qt 5.1.0

    General and Desktop
    3
    5
    1470
    Loading More Posts
    • 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
      kegon 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 ?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • K
          kegon last edited by

          It doesn't appear to be

          1 Reply Last reply Reply Quote 0
          • N
            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

            1 Reply Last reply Reply Quote 0
            • K
              kegon last edited by

              Good tip, thanks.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post