[Qt-interest] dock icon clicks on osx

Boudewijn Rempt boud at valdyas.org
Wed Dec 3 16:06:42 CET 2008


Hi, 

The apple guidelines say:

"Clicking an application icon in the Dock should always result in a window becoming active."

But I cannot find any way of actually handling clicks on the dock icon in
my app. I can add a context menu, and if the app is inactive before the click
on the dock, I get the ApplicationActivate event -- but if my application has
no windows, a click on the icon should create a new window, even if the application
is active. Is there a way to get this working in Qt (4.4)?


Boudewijn




More information about the Qt-interest-old mailing list