在Mac上使用Qt在dock图标上捕获click事件 [英] Trap click event on dock icon using Qt on Mac

查看:925
本文介绍了在Mac上使用Qt在dock图标上捕获click事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Mac OS X的dock图标上获得dock click事件。我使用的是Qt-Cocoa。
任何帮助都将非常感激。

I am trying to get dock click event on dock icon on Mac OS X. I am using Qt-Cocoa. Any help would be highly appreciated.

谢谢,
Rahul

Thanks, Rahul

推荐答案

我为一个开源项目做了这个。请参阅以下代码:
https://github.com/ KDAB / Charm / blob / master / Charm / MacApplicationCore.mm

I've done this for an open-source project. See the code here: https://github.com/KDAB/Charm/blob/master/Charm/MacApplicationCore.mm

这篇关于在Mac上使用Qt在dock图标上捕获click事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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