[Qt-interest] dock icon clicks on osx
Benjamin
ikipou at gmail.com
Wed Dec 3 17:00:06 CET 2008
Hi,
Maybe you can subclass QApplication to get the native Carbon event
with your own macEventFilter?
regards,
Benjamin
2008/12/3 Boudewijn Rempt <boud at valdyas.org>:
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list