Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-106782

[macOS] Quick Controls: MenuBar, Menu, MenuItem - add possibility to create native menus on Mac.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.4
    • Quick: Controls 2
    • None

    Description

      It's totally possible to create a QML application that is not using QtWidgets.
      However, the only way to make a native application menu now is to use QtWidgets (directly or via Qt.labs.platform, that also depends on it).

      Please, add an option to set a native menu to [application] windows, and to set native menu roles (https://doc.qt.io/qt-6/qml-qt-labs-platform-menuitem.html#role-prop such as MenuItem.AboutRole, MenuItem.PreferencesRole).

      The QtWidgets module is frozen now. And for apps that doesn't use it, it would be great to not link to it at all, and to not ship it, but to have native menubar (which is pretty much expected at any Mac app).

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              richard Richard Moe Gustavsen
              sergei.nevdakh Sergei Nevdakh
              Votes:
              9 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes