Results 1 to 3 of 3

Thread: Application not exiting gracefully if I want close to in CMainWindow ctor

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2013
    Location
    Prague
    Posts
    258
    Thanks
    3
    Thanked 65 Times in 59 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Application not exiting gracefully if I want close to in CMainWindow ctor

    Add a dummy statement behind the new and set breaks at new and in the catch block. Debug. This way, you will localize the problem. If it is the quit() (GP fault or the app tries to continue normally) then you'd better rethrow from the CMainWindow ctor and put try - catch in your main(). You should end in the catch block here. You can exit() simply because all objects created in the try block of the main() are already destructed.

  2. The following user says thank you to Radek for this useful post:

    rawfool (30th July 2013)

Similar Threads

  1. Replies: 1
    Last Post: 13th September 2011, 09:56
  2. QT application not close after close the mainwindow
    By artome in forum Qt Programming
    Replies: 1
    Last Post: 22nd July 2011, 22:23
  3. Replies: 2
    Last Post: 7th July 2011, 10:20
  4. Replies: 2
    Last Post: 17th December 2010, 19:01
  5. Exiting a Qt Console Application
    By nbetcher in forum Qt Programming
    Replies: 4
    Last Post: 23rd March 2009, 21:03

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.