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

QMenuBar and TextHeuristicRole do not work on OSX

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.1.0 RC1
    • 5.1.0 Beta 1
    • GUI: Window management
    • None
    • OSX 10.7.5
    • macOS
    • a09a867de081b4e335ce36b7377ce33abcd3e142 1faafdbe4a9ef79c9afec8d9a5e8c126a1384d9a

    Description

      If I use a QMenuBar on OSX, menu entries with a string containing "preferences" or "about" are reordered/handled in a special way, so that it mimics the look and feel of a native OSX application.
      Those entries appear in the most left menu entry with the name of the application.
      This worked well with Qt4.x.
      Since Qt5 the TextHeuristicRole does not work anymore - those entries are not detected. If I change the role to "PreferencesRole" for the entry with the "preferences" string, it basically works (= the entry is where it belongs) but the empty menu entry is still present.
      I'v attached a small test project to show what I mean.

      Attachments

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            hardcodes.de Sven Putze
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: