[Qt-interest] OSX -- closing window and keeping application loaded
Frank Mertens
frank at cyblogic.de
Fri May 29 14:44:40 CEST 2009
Thanks for your help.
I tried to find a solution myself (with zero knowledge of Carbon/Cocoa)
and only figured out that there would be only two types of events send,
which I can catch with QApplication::macEventFilter().
Still the question is open, how to do it in Cocoa?
Matteo Bertozzi wrote:
> Take a look here: http://th30z.netsons.org/2008/08/123/
>
>
> On Thu, May 28, 2009 at 10:24 PM, Frank Mertens <frank at cyblogic.de
> <mailto:frank at cyblogic.de>> wrote:
>
> On Mac I need to set qApp->setQuitOnLastWindowClose(false) to achive
> correct
> behavior for closing windows. But how to detect, if the user clicks
> again
> on the active application icon in the dock?
>
> Or is there any other way to achieve native application quit and
> close behavior
> for OSX?
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com <mailto:Qt-interest at trolltech.com>
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
More information about the Qt-interest-old
mailing list