[Qt-interest] Quit vs. Close window
Israel Brewster
israel at frontierflying.com
Tue Dec 30 00:06:23 CET 2008
How can I handle a close window command (such as when the user clicks
the close button) differently than a quit (or exit, if you prefer)
command? I have made a custom implementation of the closeEvent()
function to do some stuff when the user closes the window, and this
works. However, this is also called when you choose to quit the
application, which I don't want to happen- I only want the function to
run when the user manually closes the window. How can I implement
this? is there some sort of flag I can look for that lets me know the
application is closing? Or a specific signal that is emitted when the
close button is pressed that is not emitted when the application
exits? Thanks.
-----------------------------------------------
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
More information about the Qt-interest-old
mailing list