Python Forum
[PyQt] Qt app won't crash after sys.excepthook override
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] Qt app won't crash after sys.excepthook override
#3
(Dec-27-2020, 09:18 PM)deanhystad Wrote: I expect that Qt has an exception handler that catches the exception raised in the keypressEvent(). No such exception handler is ready to catch the exception raised in the __init_() method.

This is exactly the behavior I expect.

When sys.excepthook is not overridden, an exception in keyPressEvent() exits the app. Why this behavior is not restored once sys.__excepthook__() is called?
Reply


Messages In This Thread
RE: Qt app won't crash after sys.excepthook override - by Alfalfa - Dec-28-2020, 01:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Override the paste function(copy from excel file - paste in separate tkinter entryes) AndreiV 3 4,731 Jun-05-2020, 04:46 PM
Last Post: AndreiV
  [PyQt] timer makes my qmessagebox crash darktitan 17 7,972 Feb-19-2020, 07:11 PM
Last Post: darktitan
  PY TO EXE CRASH kozaizsvemira 0 2,316 Oct-19-2019, 07:27 PM
Last Post: kozaizsvemira

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020