Results 1 to 3 of 3

Thread: Method to close the application and go through the close event!?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 69 Times in 67 Posts

    Default Re: Method to close the application and go through the close event!?

    Since QApplication is not a QWidget, it is not strange that it doesn't have a closeEvent(). Maybe it would be an idea for you to connect to the QCoreApplication::aboutToQuit() signal.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  2. #2
    Join Date
    Nov 2010
    Posts
    97
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 11 Times in 11 Posts

    Default Re: Method to close the application and go through the close event!?

    I just tell the main window to close(). It's sufficient in my case, may not be in yours if you have more than one.

Similar Threads

  1. Replies: 2
    Last Post: 21st August 2010, 10:26
  2. Replies: 1
    Last Post: 26th November 2009, 22:57
  3. close event
    By IRON_MAN in forum Qt Programming
    Replies: 11
    Last Post: 2nd October 2009, 08:12
  4. Close Event for DialogBased Application.
    By merry in forum Qt Programming
    Replies: 1
    Last Post: 12th December 2007, 12:33
  5. Close event
    By gyre in forum Newbie
    Replies: 3
    Last Post: 20th November 2007, 13:49

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.