Trap click event on dock icon using Qt on Mac

后端 未结 3 2015
暖寄归人
暖寄归人 2021-01-24 09:05

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.

Thanks, Rahul

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-24 09:49

    On Qt 5.9.1 you can also use a hack without any platform-specific code at all. See https://stackoverflow.com/a/46488514/8695355

提交回复
热议问题