[Qt-interest] Quit vs. Close window
Tony Rietwyk
tony.rietwyk at rightsoft.com.au
Tue Dec 30 05:01:12 CET 2008
Hi Israel,
I just set a flag in my File / Exit action, and test it in the CloseEvent
override.
Hope that helps,
Tony Rietwyk
-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Israel Brewster
Sent: Tuesday, 30 December 2008 11:19
To: Deepak Chandran
Cc: Qt Interest
Subject: Re: [Qt-interest] Quit vs. Close window
On Dec 29, 2008, at 2:31 PM, Deepak Chandran wrote:
I did this by overwriting the closeEvent in QMainWindow
Thanks for the response. Unfortunately, as I mentioned in my second
sentence, I have already tried that. To reiterate, the problem with that
approach is that the closeEvent is called when the window is closed due to
application exit as well as when the user closes the window. I don't want
the routines in question to run on application exit - only on window close.
-----------------------------------------------
Israel Brewster
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081230/e46cc3bc/attachment.html
More information about the Qt-interest-old
mailing list