即使打开了模式对话框,也会启用“应用程序"菜单 [英] Application menu is enabled even if a modal dialog box is open

查看:82
本文介绍了即使打开了模式对话框,也会启用“应用程序"菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,可以在主窗口上启动模式对话框.主窗口在后台进行一些网络活动,这会更新我的后台UI.因此,即使打开了模式对话框,也可以访问应用程序菜单.

I have an application where I can launch a modal dialog box over a main window. The main window has some network activity going on in background which updates my background UI. Due to this the application menu becomes accessible even if the modal dialog is open.

如何避免这种情况?感谢您的帮助.

How can I avoid this? Any help is appreciated.

我正在使用Mac,Qt,Carbon.

I am using Mac, Qt, Carbon.

推荐答案

您不能在Mac OS X上禁用应用程序"菜单,它始终是活动的",但是您可以禁用在对话框显示时不想使用的操作.可见

You can't disable Application menu on Mac OS X, it's always "active" BUT you can disable actions you don't want to be used while dialog is visible

这篇关于即使打开了模式对话框,也会启用“应用程序"菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆