[PyQt] SOLVED Re: event() gets called but C++ object already deleted

Wilbert Berendsen wbsoft at xs4all.nl
Wed May 25 09:36:52 BST 2011

Op woensdag 25 mei 2011 schreef Wilbert:

> The problem is that on Windows, while the application is closing itself, 
> event() gets called (with a QActionEvent) while the super() call results in

I solved the crash by giving the action that was set as defaultAction() for 
the toolbutton a parent. Deletion is then handled by Qt and now event() is not 
called on the wrong moment during the object deletion.

w best regards,
Wilbert Berendsen

"You must be the change you wish to see in the world."
        -- Mahatma Gandhi

More information about the PyQt mailing list