Results 1 to 2 of 2

Thread: Is it possible to catch app crash in a widget?

  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Is it possible to catch app crash in a widget?

    Hello,

    As far as I searched on the web, I couldn't find a method(excluding using third parties) to catch application crash in a specific widget. For example, when I close the widget, I could catch it in QWidget::closeEvent(...) callback. I wonder is there any method like QWidget::closeEvent(...) or any other way to catch application crash?

    Or similarly, is there any way to catch app close if the app is closed from task manager?

    Thanks in advance...

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Is it possible to catch app crash in a widget?

    You can intercept the SIGSEGV C signal using the signal() call or its equivalent.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    zgulser (26th March 2014)

Similar Threads

  1. Own widget access causes crash
    By p3t3 in forum Newbie
    Replies: 1
    Last Post: 24th March 2011, 02:13
  2. Replies: 2
    Last Post: 20th March 2010, 19:22
  3. Replies: 1
    Last Post: 18th February 2010, 09:53
  4. Replies: 2
    Last Post: 8th February 2008, 15:31
  5. Crash when minimizing OpenGL widget
    By MistaPain in forum Qt Programming
    Replies: 5
    Last Post: 7th October 2006, 17:58

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.