Search code examples
c++macosqtmenubar

Showing the app menu on the top mac window


I have an application that on its main window, has a typical Menu bar, with File, Edit,, View, Tools, Help... with custom submenus. The menu bar is part of the form created using QtCreator, in design view.

I am trying to port this application to Mac OSX - I am a beginner in all things Mac, but I noticed that the typical apps have their menu on the main Mac window. And... it became a requirement, if I can, to move the app menu bar to the higher level menu...

I don't eve know how to begin, searching typical keywords did not yield anything useful.

I imagine that there is some type of object I can access and set, in case my os is MACX ?

Are there any examples, or documentation, on setting the top menu in Mac ?

using Qt 4.8... c++... the Mac I have to build on has 10.6.8 on it


Solution

  • According to this page, Qt should translate your menu bar into a native OS X menu bar automatically, or with little work (though that doc is for 5.3). Have you tried doing this stuff already? If so, what problems are you running into specifically?