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.