简体   繁体   English

在Mac上的Qt-隐藏主窗口后,应用程序停止响应停靠菜单图标上下文菜单中的操作

[英]Qt on Mac - When the main window is hidden the app stop responding to the actions from the dock menu icon's context menu

I am preparing my application for a Mac release. 我正在为Mac版本准备我的应用程序。 All is well except that when my main window is hidden (not minimized, hidden) the actions at the dock menu icon's context menu stop having any effect on my app. 一切都很好,除了当我的主窗口被隐藏(未最小化,隐藏)时,停靠菜单图标的上下文菜单上的操作对我的应用程序没有任何影响。

The same context menu applied to a system tray icon has the desired effect. 应用于系统任务栏图标的相同上下文菜单具有所需的效果。 Is this a bug on Qt's Mac integration? 这是Qt与Mac集成的错误吗? Any workarounds? 任何解决方法?

I don't have a solution, but I can confirm that I have the exact same issue with Qt 4.7.1 using Cocoa. 我没有解决方案,但是我可以确认使用Cocoa的Qt 4.7.1确实存在相同的问题。 Overall, the dock menu implementation seems very shaky (dynamically altering the dock menu, for instance removing menu items, also cause problems). 总的来说,停靠菜单的实现似乎很不稳定(动态更改停靠菜单,例如删除菜单项也会引起问题)。

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

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