tags:

views:

61

answers:

1

Hello all,

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

A: 

In Qt-Carbon, see http://th30z.netsons.org/2008/08/123/ It explains how to install a reopen event handler.

In Qt-Cocoa, you should get the application delegate with [[NSApplication sharedApplicaion] delegate] and add you own applicationShouldHandleReopen:hasVisibleWindows: method with class_addMethod. I have not actually tried this.

0xced
This will not work with Qt-Cocoa. It will work only with Qt-Carbon.
Rahul
I have updated my answer for Qt-Cocoa.
0xced