简体   繁体   English

在顶部的Mac窗口中显示应用程序菜单

[英]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. 菜单栏是在设计视图中使用QtCreator创建的表单的一部分。

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. 我正在尝试将该应用程序移植到Mac OSX-我是Mac的初学者,但是我注意到典型的应用程序在Mac主窗口上都有其菜单。 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 ? 我想如果我的操作系统是MACX,我可以访问和设置某种类型的对象?

Are there any examples, or documentation, on setting the top menu in Mac ? 在Mac中设置顶部菜单是否有任何示例或文档?

using Qt 4.8... c++... the Mac I have to build on has 10.6.8 on it 使用Qt 4.8 ... c ++ ...我必须建立的Mac上有10.6.8

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). 根据此页面 ,Qt应该自动将菜单栏转换为本机OS X菜单栏,或者只需花费很少的精力即可(尽管该文档适用于5.3)。 Have you tried doing this stuff already? 您是否已经尝试过执行此操作? If so, what problems are you running into specifically? 如果是这样,您会遇到什么具体问题?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM