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

Mac OS: QAction::MenuRole heuristics oddities

    XMLWordPrintable

Details

    • macOS

    Description

      The heuristics are bound to fail if there is for example a mismatch
      between qApp->appName and the action's text or something is named differently.

      Using a translation makes this even more likely (as there might be no translations of
      the single words that it checks for). It also is somewhat computationally expensive
      as tr("About"...) is done every time.

      There also appears to be some fiddling on the actions' text.

      This is somewhat unsatisfactory.

      At least, it should be clearly documented that the heuristics depend on the language
      and that if one is planning to create a Mac App, setting the role explicitly is
      strongly recommended.

      It is questionable whether the default heuristics role makes sense.

      Attachments

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

        Activity

          People

            richard Richard Moe Gustavsen
            kleint Friedemann Kleint
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes